/* ===================== AUTH PAGES (LOGIN / SIGNUP) ===================== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
}

/* --- Decorative Side Panel --- */
.auth-side {
  background: linear-gradient(145deg, var(--blush) 0%, var(--rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.auth-side::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -60px;
  left: -60px;
}

.auth-side::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -40px;
  right: -40px;
}

.auth-side-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 380px;
  animation: fadeInUp 0.8s ease both;
}

.auth-sparkle {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.auth-side-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.auth-side-content h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

.auth-side-content > p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.auth-side-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}

.auth-feature:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(4px);
}

/* --- Form Side --- */
.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  background: var(--cream);
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.auth-form-feedback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-55%);
  z-index: 3;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(37, 33, 36, 0.12);
}

.auth-form-feedback.is-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.auth-form-feedback.is-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-form-header {
  margin-bottom: 2.5rem;
}

.auth-form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.auth-form-header p {
  color: var(--mid-gray);
  font-size: 0.9rem;
}

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 0.9rem;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  outline: none;
  transition: all var(--transition);
  color: var(--charcoal);
}

.input-wrapper input::placeholder {
  color: #b0b0b0;
}

.input-wrapper input:focus {
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 3px rgba(201, 132, 124, 0.1);
}

.input-wrapper.error input {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.field-error {
  display: none;
  font-size: 0.76rem;
  color: #e74c3c;
  font-weight: 500;
  margin-top: 2px;
  padding-left: 2px;
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem;
  opacity: 0.5;
  transition: opacity var(--transition);
  z-index: 1;
}

.toggle-password:hover {
  opacity: 0.8;
}

/* --- Form Row (Remember / Forgot) --- */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mid-gray);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--dusty-rose);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  font-size: 0.83rem;
  color: var(--dusty-rose);
  font-weight: 500;
  transition: color var(--transition);
}

.forgot-link:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.terms-link {
  color: var(--dusty-rose);
  font-weight: 500;
  text-decoration: underline;
}

.terms-link:hover {
  color: var(--charcoal);
}

/* --- Name Inputs Row --- */
.form-row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Password Strength --- */
.password-strength {
  display: none;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--light-gray);
  flex: 1;
  transition: background 0.3s ease;
}

.strength-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 42px;
  text-align: right;
}

/* --- Submit Button --- */
.auth-submit-btn {
  width: 100%;
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover {
  background: var(--dusty-rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 132, 124, 0.35);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

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

.btn-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Social Buttons --- */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 50px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--dusty-rose);
  background: rgba(245, 230, 224, 0.3);
  transform: translateY(-1px);
}

.social-btn span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Switch Link --- */
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--mid-gray);
}

.auth-switch a {
  color: var(--dusty-rose);
  font-weight: 600;
  transition: color var(--transition);
}

.auth-switch a:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

/* --- Auth Responsive --- */
@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .auth-form-section {
    padding: 6rem 2rem 4rem;
  }
}

@media (max-width: 480px) {
  .auth-form-section {
    padding: 5rem 1.2rem 3rem;
  }

  .auth-form-feedback {
    transform: translateY(-40%);
  }

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

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

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