/* ============================================================
   GSTFile.in — Auth Pages Stylesheet
   assets/css/auth.css
   ============================================================ */

/* ── Base ── */
.auth-body {
  margin: 0; padding: 0;
  background: var(--bg-soft);
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

/* ── Split Layout ── */
.auth-split {
  display: flex;
  min-height: 100vh;
}

/* ── Left Panel ── */
.auth-left {
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #071528 0%, var(--navy) 55%, #0d3558 100%);
  padding: 48px 44px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.auth-left::after {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,197,161,0.15) 0%, transparent 68%);
  pointer-events: none;
}
.auth-left-inner { position: relative; z-index: 1; width: 100%; }

.auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 3rem;
}

.auth-left-text { margin-bottom: 2rem; }
.auth-left-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem; color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.auth-left-text p { color: rgba(255,255,255,0.55); font-size: .95rem; line-height: 1.65; }

.auth-benefits { list-style: none; padding: 0; margin: 0 0 2rem; }
.auth-benefits li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.72); font-size: .9rem;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.auth-benefits li:last-child { border: none; }
.auth-benefits li .bi { color: var(--teal); font-size: 1rem; flex-shrink: 0; }

.auth-left-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,197,161,0.1); border: 1px solid rgba(0,197,161,0.25);
  color: var(--teal); padding: 7px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.auth-left-badge .bi { font-size: .9rem; }

/* ── Right Panel ── */
.auth-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
  background: var(--bg-soft);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%; max-width: 460px;
}

.auth-form-header { margin-bottom: 1.75rem; }
.auth-step-badge {
  display: inline-block;
  background: var(--teal-light); color: var(--teal-dark);
  font-size: .7rem; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: .75rem;
}
.auth-form-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem; color: var(--navy); margin-bottom: .35rem; line-height: 1.2;
}
.auth-form-header p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ── Alerts ── */
.auth-alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .88rem; line-height: 1.5; margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.auth-alert .bi { flex-shrink: 0; margin-top: 1px; }
.auth-alert-error  { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.auth-alert-success{ background: #F0FDF4; border-color: #BBF7D0; color: #166534; }

/* ── Fields ── */
.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.auth-field label small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #94a3b8; }

.auth-input-wrap { position: relative; }
.auth-input-wrap > .bi:first-child {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); color: #94a3b8; font-size: 1rem;
  pointer-events: none;
}
.auth-input-wrap input {
  width: 100%; padding: 12px 14px 12px 38px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .93rem;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
  box-sizing: border-box;
}
.auth-input-wrap input::placeholder { color: #cbd5e1; }
.auth-input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,197,161,0.12);
}
.auth-input-wrap input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.auth-input-wrap input.valid {
  border-color: #22c55e;
}

.toggle-pw {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 1rem; padding: 4px;
  transition: color .2s;
}
.toggle-pw:hover { color: var(--navy); }

.field-err {
  display: block; font-size: .78rem; color: #ef4444;
  margin-top: 4px; min-height: 16px;
}

/* ── Password Strength ── */
.pw-strength {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.pw-bar {
  flex: 1; height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.pw-fill {
  height: 100%; width: 0; border-radius: 2px;
  transition: width .3s, background .3s;
}
.pw-strength span { font-size: .75rem; font-weight: 600; color: var(--muted); min-width: 52px; }

/* ── Remember / extras ── */
.auth-remember { margin-bottom: 1.25rem; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: .88rem; color: var(--muted);
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer;
}
.forgot-link {
  font-size: .8rem; font-weight: 500; color: var(--teal);
  text-decoration: none; font-style: normal;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Submit Button ── */
.auth-btn {
  width: 100%; padding: 14px;
  background: var(--teal); color: var(--navy);
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  margin-top: .25rem;
}
.auth-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,197,161,0.3);
}
.auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-terms {
  font-size: .78rem; color: #94a3b8;
  text-align: center; margin-top: .85rem; line-height: 1.55;
}
.auth-terms a { color: var(--teal); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-switch {
  text-align: center; margin-top: 1.5rem;
  font-size: .88rem; color: var(--muted);
}
.auth-switch a { color: var(--teal); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── OTP Boxes ── */
.otp-boxes {
  display: flex; justify-content: center; gap: 10px;
  margin: 1.5rem 0 1rem;
}
.otp-box {
  width: 56px; height: 64px;
  text-align: center; font-size: 1.6rem; font-weight: 800;
  font-family: 'Syne', sans-serif; color: var(--navy);
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  caret-color: var(--teal);
}
.otp-box:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,197,161,0.14);
  transform: scale(1.06);
}
.otp-box.filled {
  border-color: var(--teal);
  background: var(--teal-light);
}
.otp-box.error {
  border-color: #ef4444;
  animation: shake .35s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)}
}

.otp-timer-wrap {
  text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem;
}
.otp-timer-wrap strong { color: var(--navy); }

.otp-resend-wrap {
  text-align: center; margin-top: 1rem;
  font-size: .85rem; color: var(--muted);
}
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--teal); font-size: .88rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; padding: 0; text-decoration: none;
  transition: color .2s;
}
.link-btn:hover { color: var(--teal-dark); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-left { width: 340px; padding: 36px 28px; }
  .auth-left-text h2 { font-size: 1.6rem; }
}
@media (max-width: 720px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; padding: 32px 24px; }
  .auth-left-inner { display: flex; flex-direction: column; }
  .auth-left-text h2 { font-size: 1.5rem; }
  .auth-benefits { display: none; }
  .auth-left-badge { display: none; }
  .auth-left-text { margin-bottom: 0; }
  .auth-logo { margin-bottom: 1rem; }
  .auth-right { padding: 32px 20px; }
  .otp-box { width: 44px; height: 54px; font-size: 1.4rem; }
}
@media (max-width: 420px) {
  .otp-boxes { gap: 7px; }
  .otp-box { width: 40px; height: 50px; font-size: 1.3rem; border-radius: 9px; }
}
