/* ─── AUTH LAYOUT STYLES ─── */
/* Extends css/style.css — always load style.css first */

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT PANEL */
.auth-panel-left {
  background: linear-gradient(160deg, #064e3b 0%, #065f46 40%, #047857 70%, #059669 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.auth-brand { position: relative; z-index: 1; }
.auth-brand-logo {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 3rem;
}
.auth-brand-logo .logo-box {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: white;
}
.auth-brand-logo .logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1rem; color: white;
  line-height: 1.3;
}
.auth-brand-logo .logo-text span {
  display: block; font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400; text-transform: uppercase; letter-spacing: 1px;
}
.auth-headline {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: white; line-height: 1.2;
  margin-bottom: 1rem;
}
.auth-headline span { color: rgba(255,255,255,0.5); }
.auth-subtext {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  line-height: 1.6; max-width: 340px;
}
.auth-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 2.5rem;
  position: relative; z-index: 1;
}
.auth-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 1rem;
}
.auth-stat .s-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: white;
  margin-bottom: 0.2rem;
}
.auth-stat .s-label { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.auth-testimonial {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 1.25rem;
  margin-top: 2rem; position: relative; z-index: 1;
}
.auth-testimonial p {
  font-size: 0.83rem; color: rgba(255,255,255,0.8);
  line-height: 1.5; font-style: italic; margin-bottom: 0.75rem;
}
.auth-testimonial .t-author {
  display: flex; align-items: center; gap: 0.6rem;
}
.auth-testimonial .t-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white;
}
.auth-testimonial .t-name {
  font-size: 0.78rem; font-weight: 600; color: white;
}
.auth-testimonial .t-role {
  font-size: 0.68rem; color: rgba(255,255,255,0.55);
}

/* RIGHT PANEL */
.auth-panel-right {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
}
.auth-topbar {
  position: absolute; top: 1.25rem; right: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.auth-form-box {
  width: 100%; max-width: 420px;
  padding: 1rem 0;
}
.auth-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.35rem;
}
.auth-form-subtitle {
  font-size: 0.83rem; color: var(--text3);
  margin-bottom: 1.75rem;
}
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0;
}
.auth-divider span {
  font-size: 0.75rem; color: var(--text3); white-space: nowrap;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-link {
  text-align: center; margin-top: 1.25rem;
  font-size: 0.82rem; color: var(--text3);
}
.auth-link a { color: var(--primary); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

/* Google OAuth Button */
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: all var(--transition);
}
.btn-google:hover { background: var(--bg3); border-color: var(--text3); }
.btn-google .g-icon {
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* Password Input with toggle */
.input-group { position: relative; }
.input-group .form-control { padding-right: 2.75rem; }
.input-group .pass-toggle {
  position: absolute; right: 0.875rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text3); cursor: pointer;
  font-size: 1rem; padding: 0;
  line-height: 1;
}
.input-group .pass-toggle:hover { color: var(--text); }

/* Password Strength */
.strength-bar {
  height: 4px; background: var(--border);
  border-radius: 10px; margin-top: 0.4rem; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 10px;
  transition: width 0.3s, background 0.3s; width: 0;
}

/* OTP Input */
.otp-inputs {
  display: flex; gap: 0.75rem; justify-content: center;
  margin: 1.5rem 0;
}
.otp-inputs input {
  width: 52px; height: 56px;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.12); }
.otp-inputs input.filled { border-color: var(--primary); background: var(--primary-dim); }

/* Terms checkbox */
.terms-check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.78rem; color: var(--text2);
}
.terms-check input[type="checkbox"] {
  margin-top: 0.1rem; accent-color: var(--primary);
  width: 15px; height: 15px; flex-shrink: 0;
}

/* Simple responsive form rows */
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.auth-phone-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.auth-phone-row .form-control {
  flex: 1 1 180px;
}

/* Progress Steps (verify email) */
.auth-steps {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 2rem; justify-content: center;
}
.auth-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.auth-step-dot.active { background: var(--primary); width: 24px; border-radius: 5px; }
.auth-step-dot.done { background: var(--primary); }

/* Mobile */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 2rem 1.25rem; justify-content: flex-start; padding-top: 4rem; }
  .auth-form-box { max-width: 100%; }
  .auth-grid-2 { grid-template-columns: 1fr; }
}
