/* ============================================================
   HOGAR FINANZAS — Auth Views (Login, Register, Forgot/Reset Password)
   Unified design system for all authentication pages
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root, [data-theme="light"] {
  --auth-bg:              #f4f6f9;
  --auth-card-bg:         #ffffff;
  --auth-card-border:     rgba(0, 0, 0, 0.08);
  --auth-input-bg:        #ffffff;
  --auth-input-border:    #d1d5db;
  --auth-input-focus:     #4f46e5;
  --auth-input-focus-ring: rgba(79, 70, 229, 0.15);
  --auth-text-primary:    #111827;
  --auth-text-secondary:  #6b7280;
  --auth-text-faint:      #9ca3af;
  --auth-text-inverse:    #ffffff;
  --auth-primary:         #4f46e5;
  --auth-primary-hover:   #4338ca;
  --auth-primary-active:  #3730a3;
  --auth-error:           #dc2626;
  --auth-error-bg:        #fef2f2;
  --auth-error-border:    #fca5a5;
  --auth-success:         #16a34a;
  --auth-success-bg:      #f0fdf4;
  --auth-success-border:  #86efac;
  --auth-shadow-card:     0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  --auth-shadow-input:    0 1px 2px rgba(0,0,0,0.04);
  --auth-radius-card:     16px;
  --auth-radius-input:    10px;
  --auth-radius-btn:      10px;
  --auth-panel-gradient:  linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  /* Level colors — strength meter */
  --strength-weak:   #ef4444;
  --strength-fair:   #f59e0b;
  --strength-good:   #3b82f6;
  --strength-strong: #16a34a;
}

[data-theme="dark"] {
  --auth-bg:              #0f172a;
  --auth-card-bg:         #1e293b;
  --auth-card-border:     rgba(255, 255, 255, 0.07);
  --auth-input-bg:        #0f172a;
  --auth-input-border:    #334155;
  --auth-input-focus:     #818cf8;
  --auth-input-focus-ring: rgba(129, 140, 248, 0.2);
  --auth-text-primary:    #f1f5f9;
  --auth-text-secondary:  #94a3b8;
  --auth-text-faint:      #64748b;
  --auth-text-inverse:    #ffffff;
  --auth-primary:         #6366f1;
  --auth-primary-hover:   #818cf8;
  --auth-primary-active:  #a5b4fc;
  --auth-error:           #f87171;
  --auth-error-bg:        rgba(239, 68, 68, 0.1);
  --auth-error-border:    rgba(239, 68, 68, 0.3);
  --auth-success:         #4ade80;
  --auth-success-bg:      rgba(74, 222, 128, 0.1);
  --auth-success-border:  rgba(74, 222, 128, 0.3);
  --auth-shadow-card:     0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
  --auth-shadow-input:    0 1px 2px rgba(0,0,0,0.2);
  --auth-panel-gradient:  linear-gradient(135deg, #1e1b4b 0%, #1e293b 100%);

  --strength-weak:   #ef4444;
  --strength-fair:   #f59e0b;
  --strength-good:   #60a5fa;
  --strength-strong: #34d399;
}

/* ============================================================
   2. LAYOUT RESET
   ============================================================ */
.auth-container {
    padding: 0 !important;
    display: block !important;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 48fr 52fr;
  min-height: 100vh;
  background: var(--auth-bg);
}

/* ============================================================
   3. LEFT PANEL
   ============================================================ */
.auth-panel-left {
  background: var(--auth-panel-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--auth-card-border);
  --auth-primary:         #ffffff;
  --auth-text-primary:    #ffffff;
  --auth-text-secondary:  rgba(255, 255, 255, 0.8);
  --auth-text-faint:      rgba(255, 255, 255, 0.55);
  color: var(--auth-text-primary);
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: var(--auth-primary);
    filter: blur(150px);
    opacity: 0.08;
    border-radius: 50%;
}

.auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: var(--auth-primary);
    filter: blur(180px);
    opacity: 0.05;
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
}

.brand-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--auth-text-primary);
    margin-top: 32px;
    margin-bottom: 20px;
    letter-spacing: -1.2px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 18px;
    color: var(--auth-text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 440px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    color: var(--auth-text-primary);
    font-weight: 500;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-check {
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}

.auth-panel-left .feature-check {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   4. RIGHT PANEL — Auth Card
   ============================================================ */
.auth-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--auth-bg);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 48px;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  border-radius: 24px;
  box-shadow: var(--auth-shadow-card);
  animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
    margin-bottom: 28px;
    text-align: left;
}

.auth-header h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--auth-text-primary);
    margin: 16px 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--auth-text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================================
   5. FORM ELEMENTS
   ============================================================ */
.form-field {
    margin-bottom: 20px;
    position: relative;
}

.form-field > label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-secondary);
    margin-bottom: 8px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.field-label-row label {
    margin-bottom: 0 !important;
}

.forgot-link {
  font-size: 12.5px;
  color: var(--auth-primary);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 150ms;
  line-height: 1;
}

.forgot-link:hover { opacity: 0.75; }

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--auth-text-faint);
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 12px 0 42px;
  border: 1.5px solid var(--auth-input-border);
  border-radius: var(--auth-radius-input);
  background: var(--auth-input-bg);
  color: var(--auth-text-primary);
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--auth-shadow-input);
}

.form-input:focus {
  outline: none;
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px var(--auth-input-focus-ring);
}

.form-input:focus + .input-icon {
    color: var(--auth-primary);
}

/* ============================================================
   6. ERROR STATES
   ============================================================ */
.form-field.has-error .form-input {
  border-color: var(--auth-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-field.has-error .input-icon {
    color: var(--auth-error);
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--auth-error);
  margin-top: 5px;
  min-height: 16px;
  font-weight: 500;
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--auth-text-faint);
  margin-top: 5px;
  line-height: 1.4;
}

/* ============================================================
   7. TOGGLE PASSWORD
   ============================================================ */
.toggle-password {
    position: absolute;
    right: 8px;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--auth-text-faint);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.toggle-password:hover {
    background: rgba(0,0,0,0.04);
    color: var(--auth-text-secondary);
}

/* ============================================================
   8. CHECKBOX CUSTOM
   ============================================================ */
.form-field--checkbox {
    margin-top: 4px;
    margin-bottom: 28px;
}

.checkbox-label {
 display: inline-flex !important;
 align-items: center !important;
 gap: 12px;
 cursor: pointer;
 font-size: 14px;
 color: var(--auth-text-secondary);
 user-select: none;
 width: 100%;
}

.checkbox-label input[type="checkbox"] {
 position: absolute;
 opacity: 0;
 width: 0;
 height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--auth-input-border);
  border-radius: 6px;
  background: var(--auth-input-bg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.checkbox-label span:not(.checkbox-custom) {
    line-height: 1;
    display: inline-block;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--auth-primary);
  border-color: var(--auth-primary);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.checkbox-label input:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px var(--auth-input-focus-ring);
}

/* ============================================================
   9. SUBMIT BUTTON
   ============================================================ */
.btn-submit {
 width: 100%;
 height: 46px;
 background: var(--auth-primary);
 color: var(--auth-text-inverse);
 border: none;
 border-radius: var(--auth-radius-btn);
 font-size: 15px;
 font-weight: 600;
 letter-spacing: 0.2px;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 margin-top: 8px;
 transition: background 180ms ease, transform 100ms ease, box-shadow 180ms ease;
 position: relative;
}

.btn-submit:hover:not(:disabled) {
 background: var(--auth-primary-hover);
 box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-submit:active:not(:disabled) {
 transform: scale(0.98);
}

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

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

.btn-submit.loading .btn-spinner {
  display: block;
}

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

/* ============================================================
   10. ALERTS & NOTIFICATIONS
   ============================================================ */
.auth-alert {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 padding: 12px 16px;
 border-radius: 10px;
 font-size: 13.5px;
 font-weight: 500;
 margin-bottom: 20px;
 animation: alertSlideIn 0.2s ease;
}

.auth-alert--error {
 background: var(--auth-error-bg);
 border: 1px solid var(--auth-error-border);
 color: var(--auth-error);
}

.auth-alert--success {
 background: var(--auth-success-bg);
 border: 1px solid var(--auth-success-border);
 color: var(--auth-success);
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-alert[hidden] { display: none; }

/* ============================================================
   11. CARD FOOTER
   ============================================================ */
.auth-card-footer {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-card-footer p {
  font-size: 13.5px;
  color: var(--auth-text-secondary);
}

.auth-card-footer a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-legal {
  font-size: 11.5px !important;
  color: var(--auth-text-faint) !important;
  line-height: 1.6;
}

.auth-legal a {
  color: var(--auth-text-faint) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ============================================================
   12. BACK LINK
   ============================================================ */
.back-to-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--auth-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms;
  margin-bottom: 8px;
}

.back-to-login:hover {
  color: var(--auth-primary);
}

/* ============================================================
   13. RECOVER ILLUSTRATION
   ============================================================ */
.recover-illustration {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* ============================================================
   14. PASSWORD STRENGTH METER (Register style)
   ============================================================ */
.strength-meter {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-meter.visible { display: flex; }

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

.strength-meter .strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: var(--auth-input-border);
  transition: background 300ms ease;
}

.strength-meter[data-level="1"] .strength-bar[data-index="0"] { background: var(--strength-weak); }
.strength-meter[data-level="2"] .strength-bar[data-index="0"],
.strength-meter[data-level="2"] .strength-bar[data-index="1"] { background: var(--strength-fair); }
.strength-meter[data-level="3"] .strength-bar[data-index="0"],
.strength-meter[data-level="3"] .strength-bar[data-index="1"],
.strength-meter[data-level="3"] .strength-bar[data-index="2"] { background: var(--strength-good); }
.strength-meter[data-level="4"] .strength-bar { background: var(--strength-strong); }

.strength-label {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

.strength-meter[data-level="1"] .strength-label { color: var(--strength-weak); }
.strength-meter[data-level="2"] .strength-label { color: var(--strength-fair); }
.strength-meter[data-level="3"] .strength-label { color: var(--strength-good); }
.strength-meter[data-level="4"] .strength-label { color: var(--strength-strong); }

/* ============================================================
   15. PASSWORD STRENGTH BARS (Reset Password style)
   ============================================================ */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.password-strength .strength-bar {
  flex: 1;
  height: 3px;
  background: var(--auth-input-border);
  border-radius: 2px;
  transition: background 250ms ease;
}

.strength-bar.active-weak { background: var(--strength-weak); }
.strength-bar.active-fair { background: var(--strength-fair); }
.strength-bar.active-good { background: var(--strength-good); }
.strength-bar.active-strong { background: var(--strength-strong); }

.password-strength + .strength-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--auth-text-faint);
  transition: color 200ms;
}

/* ============================================================
   16. MATCH INDICATOR
   ============================================================ */
.match-indicator {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms;
}

.match-indicator.match { opacity: 1; color: var(--auth-success); }
.match-indicator.no-match { opacity: 1; color: var(--auth-error); }

/* ============================================================
   17. SUCCESS STATE (Forgot Password)
   ============================================================ */
.success-state {
  text-align: center;
  padding: 12px 0;
}

.success-state .success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--auth-success-bg);
  border: 2px solid var(--auth-success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-state h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--auth-text-primary);
  margin-bottom: 10px;
}

.success-state p {
  font-size: 14px;
  color: var(--auth-text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.success-state .email-highlight {
  font-weight: 600;
  color: var(--auth-text-primary);
}

.success-state .resend-info {
  font-size: 12.5px;
  color: var(--auth-text-faint);
  margin-top: 16px;
}

.success-state .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--auth-primary);
  color: var(--auth-text-inverse);
  border: none;
  border-radius: var(--auth-radius-btn);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.success-state .btn-back:hover {
  background: var(--auth-primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  text-decoration: none;
}

/* ============================================================
   18. REGISTER-SPECIFIC: Panel badge & features
   ============================================================ */
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--auth-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.auth-panel-left .panel-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.auth-panel-content { position: relative; z-index: 10; max-width: 520px; }

.panel-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--auth-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.8px;
    line-height: 1.15;
}

.panel-subtitle {
    font-size: 17px;
    color: var(--auth-text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.panel-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-icon--green  { background: rgba(22, 163, 74, 0.1);  color: #16a34a; }
.feature-icon--blue   { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.feature-icon--indigo { background: rgba(79, 70, 229, 0.1);  color: #4f46e5; }

.auth-panel-left .feature-icon--green  { background: rgba(255, 255, 255, 0.15) !important; color: #4ade80 !important; }
.auth-panel-left .feature-icon--blue   { background: rgba(255, 255, 255, 0.15) !important; color: #38bdf8 !important; }
.auth-panel-left .feature-icon--indigo { background: rgba(255, 255, 255, 0.15) !important; color: #e0e7ff !important; }

.panel-features strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--auth-text-primary);
  margin-bottom: 4px;
}

.panel-features span {
  font-size: 13.5px;
  color: var(--auth-text-secondary);
  line-height: 1.5;
}

/* Trial badge */
.auth-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--auth-success-bg);
  color: var(--auth-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

[data-theme="dark"] .auth-trial-badge {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.15);
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */

/* Left panel paddings for medium screens */
@media (max-width: 1024px) {
    .auth-panel-left { padding: 40px; }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
    background: var(--auth-card-bg);
  }
  .auth-panel-left {
    display: none;
  }
  .auth-panel-right {
      padding: 0;
      align-items: flex-start;
  }
  .auth-card {
    max-width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 60px 24px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .auth-header { margin-bottom: 32px; }
  .auth-header h1 { font-size: 24px; }
}

/* ============================================================
   20. THEME TOGGLE (Auth pages)
   ============================================================ */
.theme-toggle-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-card-border);
    color: var(--auth-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: var(--auth-bg);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn i {
    font-size: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle-btn i {
    transform: rotate(360deg);
}

@media (max-width: 767.98px) {
    .theme-toggle-btn {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* ============================================================
   21. TOAST NOTIFICATIONS (Auth pages)
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    min-width: 250px;
    background: var(--auth-card-bg, #ffffff);
    border-left: 4px solid var(--auth-primary, #4f46e5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 20px;
    border-radius: 8px;
    color: var(--auth-text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success { border-left-color: var(--auth-success, #16a34a); }
.toast.error { border-left-color: var(--auth-error, #dc2626); }
.toast.warning { border-left-color: #f59e0b; }

/* ============================================================
   22. UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
