/* Brand Colors */
:root {
  --brand-primary: #0083FF;
  --brand-secondary: #55ACFF;
  --brand-light: #AAD6FF;
  --brand-white: #FFFFFF;
  --text-color: #333333;
  --bg-color: #F5F5F5;
  --input-bg: #F0F2F5;
  --input-border: #E1E1E1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Split Layout */
.login-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 5rem;
  background-color: var(--brand-white);
  overflow-y: auto;
}

.login-right {
  flex: 1;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Right side content placeholder */
.media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--brand-white);
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Form Container */
.form-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

.logo {
  width: 52px;
  height: 52px;
  background-color: var(--brand-primary);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-google {
  background-color: var(--brand-white);
  border: 1px solid var(--input-border);
  color: #1a1a1a;
  font-weight: 600;
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  background-color: #f8f9fa;
  border-color: #d1d1d1;
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand-primary), var(--brand-secondary));
  color: var(--brand-white);
  border: none;
  box-shadow: 0 14px 30px rgba(0, 131, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(0, 131, 255, 0.3);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #888;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--input-border);
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

/* Form Elements */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

input {
  width: 100%;
  padding: 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background-color: var(--brand-white);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #666;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Links */
.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.create-account {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.create-account a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.create-account a:hover {
  text-decoration: underline;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #555;
}

.checkbox-row label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.checkbox-row input[type='checkbox'] {
  width: auto;
  margin-top: 0.2rem;
}

.password-requirements {
  margin: 0 0 0.25rem;
  padding-left: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  list-style: none;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.password-requirements li::before {
  content: '•';
  color: var(--brand-primary);
  font-weight: 700;
}

.password-requirements li.is-met {
  color: var(--brand-primary);
}

.password-requirements li.is-met::before {
  content: '✓';
}

#status,
#signup-status {
    text-align: center;
    color: #d32f2f;
    font-size: 0.9rem;
    min-height: 1.2em;
    visibility: hidden;
}

#status.is-visible,
#signup-status.is-visible {
    visibility: visible;
}
