/* ===== Auth Pages ===== */
.auth-page {
  background:
    linear-gradient(180deg,
      rgba(160, 190, 215, 0.45) 0%,
      rgba(180, 205, 225, 0.5) 40%,
      rgba(195, 215, 232, 0.55) 70%,
      rgba(210, 225, 238, 0.6) 100%
    ),
    url('https://images.unsplash.com/photo-1517483000871-1dbf64a6e1c6?w=1920&q=80') center/cover no-repeat;
  min-height: 100vh;
}

.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left panel */
.auth-left {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  background:
    linear-gradient(135deg, rgba(20, 35, 60, 0.88), rgba(25, 45, 75, 0.92)),
    url('https://images.unsplash.com/photo-1517483000871-1dbf64a6e1c6?w=1920&q=80') center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(100, 160, 220, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left-content {
  margin-top: 4rem;
}

.auth-left .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.auth-left h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.auth-left h1 em { font-style: italic; }

.auth-left > .auth-left-content > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.benefits-list {
  margin-top: 2rem;
  list-style: none;
}

.benefits-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.auth-left-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Right panel */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-container h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-subtitle a {
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--text-dark);
}

.form-subtitle a:hover { opacity: 0.7; }

/* Form elements */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.forgot-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.forgot-link:hover { color: var(--text-dark); }

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  outline: none;
  color: var(--text-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 142, 201, 0.12);
}

.auth-form input::placeholder {
  color: rgba(45, 45, 68, 0.35);
}

.password-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.toggle-password:hover { color: var(--text-dark); }

/* Checkbox */
.checkbox-group { flex-direction: row; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.checkbox-label input { display: none; }

.checkbox-label a {
  color: var(--text-dark);
  text-decoration: underline;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--text-dark);
  border-color: var(--text-dark);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Submit button */
.auth-form .submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--text-dark);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.auth-form .submit-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.auth-form .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Social buttons */
.social-buttons {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.2s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-left {
    flex: none;
    min-height: 35vh;
    padding: 2rem;
  }

  .auth-left-content {
    margin-top: 1.5rem;
  }

  .auth-left h1 {
    font-size: 2rem;
  }

  .auth-left-footer {
    display: none;
  }

  .auth-right {
    padding: 2rem 1.5rem 3rem;
  }

  .auth-form .form-row {
    grid-template-columns: 1fr;
  }
}
