/* =====================================================
   JioSangam — Auth Pages CSS (login + register)
   ===================================================== */

/* ===== AUTH BODY ===== */
.auth-body {
  min-height: 100vh;
  background: var(--bg-light);
  display: flex; align-items: stretch;
}

/* ===== WRAPPER ===== */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ===== LEFT PANEL ===== */
.auth-left {
  background: var(--rose-dark);
  padding: 40px 48px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.auth-left::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* Logo */
.auth-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; position: relative; z-index: 1;
}
.auth-logo .logo-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo .logo-icon svg { width: 20px; height: 20px; fill: white; }
.auth-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: white;
}
.auth-logo em { color: #FAC775; font-style: normal; }

/* Left content */
.auth-left-content {
  position: relative; z-index: 1;
}
.auth-left-content h2 {
  font-size: 28px; color: white;
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px; line-height: 1.3;
}
.auth-left-content p {
  font-size: 15px; color: rgba(255,255,255,0.75);
  margin-bottom: 28px; line-height: 1.7;
}
.auth-features { list-style: none; }
.auth-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: rgba(255,255,255,0.88);
  padding: 8px 0;
}
.feat-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

/* Left footer */
.auth-left-footer {
  font-size: 14px; color: rgba(255,255,255,0.65);
  position: relative; z-index: 1;
}
.auth-left-footer a {
  color: #FAC775; font-weight: 500; text-decoration: none;
}
.auth-left-footer a:hover { text-decoration: underline; }

/* ===== RIGHT PANEL ===== */
.auth-right {
  background: white;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}
.auth-form-wrap {
  width: 100%; max-width: 420px;
}
.auth-form-wrap h1 {
  font-size: 26px; color: var(--rose-dark);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}
.auth-sub {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; margin-bottom: 20px; line-height: 1.7;
}
.alert div { margin-bottom: 2px; }
.alert div:last-child { margin-bottom: 0; }
.alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #e8f8f0; color: #1a7a4a; border: 1px solid #b8dfc9; }
.alert-info    { background: #e8f0fb; color: #1a5276; border: 1px solid #b8ccf0; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ===== FORM ===== */
.auth-form { display: flex; flex-direction: column; gap: 0; }

.form-group {
  display: flex; flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px; font-weight: 500; color: var(--text);
  margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center;
}
.req { color: var(--rose); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--text);
  background: #fafafa; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--rose); background: white;
}
.form-group input.error { border-color: #e74c3c; }

/* Gender toggle */
.gender-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.gender-option {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s;
}
.gender-option input[type="radio"] { display: none; }
.gender-option:hover { border-color: var(--rose); color: var(--rose); }
.gender-option.selected,
.gender-option:has(input:checked) {
  border-color: var(--rose); background: var(--rose-light);
  color: var(--rose-dark);
}

/* Mobile prefix */
.input-prefix {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: #fafafa; overflow: hidden;
  transition: border-color 0.2s;
}
.input-prefix:focus-within { border-color: var(--rose); background: white; }
.prefix {
  padding: 11px 12px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); border-right: 1px solid var(--border);
  background: #f0f0f0; white-space: nowrap;
}
.input-prefix input {
  border: none !important; background: transparent !important;
  border-radius: 0 !important; flex: 1;
}
.input-prefix input:focus { border: none !important; }

/* Password eye toggle */
.input-eye {
  position: relative; display: flex; align-items: center;
}
.input-eye input { padding-right: 44px !important; }
.eye-btn {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted); padding: 4px;
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--rose); }

/* Password strength */
.password-strength {
  height: 4px; background: #eee; border-radius: 2px;
  margin-top: 6px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0; border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.strength-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Checkbox */
.checkbox-group { margin-bottom: 20px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 13px; color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--rose); cursor: pointer;
}
.checkbox-label a { color: var(--rose); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* Forgot link */
.forgot-link {
  font-size: 12px; font-weight: 400;
  color: var(--rose); text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* Switch link */
.auth-switch {
  text-align: center; font-size: 13px;
  color: var(--text-muted); margin-top: 16px;
}
.auth-switch a { color: var(--rose); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; min-height: 100vh; align-items: flex-start; padding-top: 40px; }
  .auth-form-wrap { max-width: 100%; }

  /* Show logo on mobile since left panel is hidden */
  .auth-right::before {
    content: '';
    display: block;
  }
  .mobile-logo {
    display: flex !important;
  }
}

/* Mobile logo (shown only on small screens) */
.mobile-logo {
  display: none;
  align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 28px;
}
.mobile-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rose); display: flex; align-items: center; justify-content: center;
}
.mobile-logo .logo-icon svg { width: 17px; height: 17px; fill: white; }
.mobile-logo span {
  font-family: 'Playfair Display', serif; font-size: 20px; color: var(--rose-dark);
}
.mobile-logo em { color: var(--gold); font-style: normal; }