/* LOCATION: public/css/auth.css */
/* ============================================================
   AUTH PAGES — APPLE LIQUID GLASS (PREMIUM EDITION)
   Login, Register, Forgot Password, Reset Password, Verify Email
   ============================================================ */

/* ============================================================
   1. VARIABILE
   ============================================================ */
:root {
  --auth-gradient-primary: linear-gradient(135deg, #007aff 0%, #0a84ff 50%, #5ac8fa 100%);
  --auth-gradient-accent:  linear-gradient(135deg, #00c7be 0%, #30d5c8 50%, #5ac8fa 100%);
  --auth-gradient-text:    linear-gradient(135deg, #007aff 0%, #00c7be 60%, #5ac8fa 100%);

  --auth-glass-bg:      rgba(255, 255, 255, 0.55);
  --auth-glass-strong:  rgba(255, 255, 255, 0.85);
  --auth-glass-border:  rgba(255, 255, 255, 0.65);
  --auth-glass-shadow:  0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --auth-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9),
                          inset 0 -1px 0 rgba(255, 255, 255, 0.15),
                          inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --auth-glass-sheen:   linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.03) 100%);

  --auth-transition:      280ms cubic-bezier(0.22, 1, 0.36, 1);
  --auth-transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --auth-spring:          cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --auth-glass-bg:      rgba(28, 28, 30, 0.55);
  --auth-glass-strong:  rgba(28, 28, 30, 0.85);
  --auth-glass-border:  rgba(255, 255, 255, 0.12);
  --auth-glass-shadow:  0 12px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --auth-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14),
                          inset 0 -1px 0 rgba(255, 255, 255, 0.03),
                          inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --auth-glass-sheen:   linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.05) 100%);
}

/* ============================================================
   2. LAYOUT PRINCIPAL
   ============================================================ */
body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: #f5f5f7;
}

[data-theme="dark"] body.auth-page {
  background: #000;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================================
   3. PANOU STÂNGA — BRANDING (Liquid Glass + Aurora)
   ============================================================ */
.auth-branding {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
  background: var(--auth-gradient-primary);
  isolation: isolate;
}

/* FIX PREMIUM: Dark Mode profund cu umbră 3D */
[data-theme="dark"] .auth-branding {
  background: #05050a;
  box-shadow: 15px 0 40px -10px rgba(0, 0, 0, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 22%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, transparent 40%, rgba(0, 199, 190, 0.08) 100%);
  mix-blend-mode: overlay;
}

[data-theme="dark"] .auth-branding::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 20%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, transparent 50%, rgba(0, 199, 190, 0.05) 100%);
}

/* Lumini ambientale în fundal */
.auth-branding-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(0, 199, 190, 0.30), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(90, 200, 250, 0.40), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10), transparent 70%);
}

[data-theme="dark"] .auth-branding-bg {
  background: radial-gradient(ellipse at 10% 10%, rgba(0, 122, 255, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 90%, rgba(0, 199, 190, 0.12), transparent 60%),
              radial-gradient(ellipse at 50% 50%, rgba(90, 200, 250, 0.05), transparent 70%);
}

.auth-branding-bg::before,
.auth-branding-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.auth-branding-bg::before {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.85), transparent 60%);
  animation: authOrbFloat1 14s ease-in-out infinite;
}

.auth-branding-bg::after {
  width: 460px;
  height: 460px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(0, 199, 190, 0.75), transparent 60%);
  animation: authOrbFloat2 18s ease-in-out infinite;
}

[data-theme="dark"] .auth-branding-bg::before {
  background: radial-gradient(circle, rgba(0, 122, 255, 0.35), transparent 60%);
  opacity: 0.6;
}

[data-theme="dark"] .auth-branding-bg::after {
  background: radial-gradient(circle, rgba(0, 199, 190, 0.25), transparent 60%);
  opacity: 0.6;
}

@keyframes authOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes authOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -40px) scale(1.12); }
}

.auth-branding-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  color: #fff;
}

.auth-branding-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  transition: transform var(--auth-transition-fast);
}

.auth-branding-logo:hover {
  transform: scale(1.03);
}

.auth-branding-logo svg {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

.auth-branding-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.auth-branding-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 50%, #b3e5fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* FIX PREMIUM: Textul colorat strălucește pe negru */
[data-theme="dark"] .auth-branding-highlight {
  background: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 50%, #00c7be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.auth-branding-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.auth-branding-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-branding-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.auth-branding-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 100%);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  color: #fff;
}

[data-theme="dark"] .auth-branding-feature-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #5ac8fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-branding-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: auto;
}

[data-theme="dark"] .auth-branding-stats {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.auth-branding-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.auth-branding-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-branding-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.01em;
}

.auth-branding-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

[data-theme="dark"] .auth-branding-stat-divider {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   4. PANOU DREAPTA — FORMULAR
   ============================================================ */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  padding-left: max(24px, env(safe-area-inset-left, 24px));
  padding-right: max(24px, env(safe-area-inset-right, 24px));
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at top left,     rgba(0, 122, 255, 0.09), transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(0, 199, 190, 0.08), transparent 55%),
              radial-gradient(ellipse at 60% 40%,      rgba(90, 200, 250, 0.05), transparent 60%),
              #f5f5f7;
}

[data-theme="dark"] .auth-form-panel {
  background: radial-gradient(ellipse at top left,     rgba(0, 122, 255, 0.16), transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(0, 199, 190, 0.14), transparent 55%),
              radial-gradient(ellipse at 60% 40%,      rgba(90, 200, 250, 0.08), transparent 60%),
              #000;
}

.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.auth-mobile-logo svg {
  flex-shrink: 0;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

@media (min-width: 901px) {
  .auth-form-wrapper {
    max-width: 460px;
    padding: 44px 40px 40px;
    border-radius: 28px;
    background: var(--auth-glass-sheen), var(--auth-glass-bg);
    backdrop-filter: blur(36px) saturate(180%);
    -webkit-backdrop-filter: blur(36px) saturate(180%);
    border: 1px solid var(--auth-glass-border);
    box-shadow: var(--auth-glass-shadow), var(--auth-glass-highlight);
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .auth-form-wrapper {
      background: var(--auth-glass-strong);
    }
  }
}

@media (max-width: 900px) {
  .auth-form-wrapper {
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
  }
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-title {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 8px;
  text-wrap: balance;
}

.auth-form-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.auth-form-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--auth-transition-fast);
}

.auth-form-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   5. ALERTE
   ============================================================ */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  animation: authAlertIn 400ms var(--auth-spring);
}

@keyframes authAlertIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-alert svg { flex-shrink: 0; }

.auth-alert-error {
  background: rgba(255, 59, 48, 0.10);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #ff3b30;
}

.auth-alert-success {
  background: rgba(52, 199, 89, 0.10);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #34c759;
}

[data-theme="dark"] .auth-alert-error {
  background: rgba(255, 59, 48, 0.18);
  border-color: rgba(255, 59, 48, 0.35);
  color: #ff6961;
}

[data-theme="dark"] .auth-alert-success {
  background: rgba(52, 199, 89, 0.18);
  border-color: rgba(52, 199, 89, 0.35);
  color: #5ddb7a;
}

/* ============================================================
   6. FORMULARE & INPUT-URI
   ============================================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.auth-label-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--auth-transition-fast);
}

.auth-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: color var(--auth-transition-fast), transform var(--auth-transition-fast);
}

.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.auth-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 120, 128, 0.20);
  border-radius: var(--radius-md);
  outline: none;
  letter-spacing: -0.01em;
  transition: border-color var(--auth-transition-fast), box-shadow var(--auth-transition-fast), background var(--auth-transition-fast), transform var(--auth-transition-fast);
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-input::placeholder { color: var(--text-muted); opacity: 0.85; }

.auth-input:hover {
  border-color: rgba(120, 120, 128, 0.35);
  background: rgba(255, 255, 255, 0.88);
}

.auth-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-input.success { border-color: #34c759; background: rgba(52, 199, 89, 0.06); }
.auth-input.error { border-color: #ff3b30; background: rgba(255, 59, 48, 0.06); }
.auth-input.error:focus { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15); }

[data-theme="dark"] .auth-input {
  background: rgba(44, 44, 46, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .auth-input:hover {
  background: rgba(58, 58, 60, 0.88);
  border-color: rgba(255, 255, 255, 0.20);
}

[data-theme="dark"] .auth-input:focus {
  background: rgba(58, 58, 60, 0.98);
  border-color: #5ac8fa;
  box-shadow: 0 0 0 4px rgba(90, 200, 250, 0.20);
}

[data-theme="dark"] .auth-input::placeholder {
  color: rgba(235, 235, 245, 0.55);
  opacity: 1;
}

.auth-input-feedback {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: authFeedbackPop 300ms var(--auth-spring);
}

@keyframes authFeedbackPop {
  from { opacity: 0; transform: translateY(-50%) scale(0.5); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

.auth-input-feedback-success { color: #34c759; }
.auth-input-feedback-error   { color: #ff3b30; }
.auth-input.success ~ .auth-input-feedback-success { display: inline-flex; }
.auth-input.error   ~ .auth-input-feedback-error   { display: inline-flex; }

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--auth-transition-fast), background var(--auth-transition-fast), transform var(--auth-transition-fast);
  padding: 0;
  font-family: inherit;
}

.auth-password-toggle:hover { color: var(--accent); background: rgba(0, 122, 255, 0.10); }
.auth-password-toggle:active { transform: translateY(-50%) scale(0.92); }
.auth-password-toggle svg { display: block; }

.auth-field-error {
  font-size: 12.5px;
  font-weight: 500;
  color: #ff3b30;
  letter-spacing: -0.01em;
  min-height: 0;
}
.auth-field-error:not(:empty) { min-height: 16px; }

/* ============================================================
   7. SELECTOR ROL (Register)
   ============================================================ */
.auth-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.auth-role-option { position: relative; cursor: pointer; display: block; }
.auth-role-option input { position: absolute; opacity: 0; pointer-events: none; }

.auth-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(120, 120, 128, 0.20);
  transition: background var(--auth-transition-fast), border-color var(--auth-transition-fast), box-shadow var(--auth-transition-fast), transform var(--auth-transition-fast);
}

.auth-role-card:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 122, 255, 0.30);
  transform: translateY(-1px);
}

.auth-role-option input:checked ~ .auth-role-card {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.10), rgba(0, 199, 190, 0.08));
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.auth-role-option input:focus-visible ~ .auth-role-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 122, 255, 0.10);
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--auth-transition-fast), color var(--auth-transition-fast), box-shadow var(--auth-transition-fast), transform var(--auth-transition-fast);
}

.auth-role-option input:checked ~ .auth-role-card .auth-role-icon {
  background: var(--auth-gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.30);
  transform: scale(1.04);
}

.auth-role-content { display: flex; flex-direction: column; gap: 2px; }
.auth-role-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.auth-role-desc { font-size: 12px; color: var(--text-muted); }

.auth-role-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  animation: authCheckPop 320ms var(--auth-spring);
}

@keyframes authCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.auth-role-option input:checked ~ .auth-role-card .auth-role-check { display: inline-flex; }

[data-theme="dark"] .auth-role-card { background: rgba(44, 44, 46, 0.65); border-color: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .auth-role-card:hover { background: rgba(58, 58, 60, 0.85); }

/* ============================================================
   8. PAROLA - STRENGTH METER
   ============================================================ */
.auth-password-strength { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.auth-password-strength-bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(120, 120, 128, 0.15); overflow: hidden; }
.auth-password-strength-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: transparent; transition: width 400ms var(--auth-transition), background 300ms var(--auth-transition); }
.auth-password-strength-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; letter-spacing: -0.01em; }

/* ============================================================
   9. RÂND FORMULAR (Nume + Prenume)
   ============================================================ */
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   10. CHECKBOX
   ============================================================ */
.auth-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }
.auth-check-input { position: absolute; opacity: 0; pointer-events: none; }

.auth-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(120, 120, 128, 0.30);
  color: transparent;
  transition: background var(--auth-transition-fast), border-color var(--auth-transition-fast), color var(--auth-transition-fast), transform var(--auth-transition-fast);
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-check:hover .auth-check-box { border-color: rgba(0, 122, 255, 0.50); background: rgba(255, 255, 255, 0.85); }

.auth-check-input:checked ~ .auth-check-box {
  background: var(--auth-gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.auth-check-input:focus-visible ~ .auth-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth-check-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: -0.01em; line-height: 1.4; }
.auth-check-label a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-check-label a:hover { text-decoration: underline; text-underline-offset: 2px; }

[data-theme="dark"] .auth-check-box { background: rgba(44, 44, 46, 0.72); border-color: rgba(255, 255, 255, 0.15); }
[data-theme="dark"] .auth-check:hover .auth-check-box { border-color: rgba(90, 200, 250, 0.50); background: rgba(58, 58, 60, 0.85); }

/* ============================================================
   11. BUTONUL PRINCIPAL (Submit)
   ============================================================ */
.auth-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--auth-gradient-primary);
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35), 0 2px 8px rgba(0, 122, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform var(--auth-transition-fast), box-shadow var(--auth-transition-fast);
  overflow: hidden;
  isolation: isolate;
}

[data-theme="dark"] .auth-submit {
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.28), 0 2px 6px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.30) 50%, transparent 60%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 700ms var(--auth-transition);
  pointer-events: none;
}

.auth-submit:hover::before { transform: translateX(100%); }

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.45), 0 4px 12px rgba(0, 122, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

[data-theme="dark"] .auth-submit:hover {
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.38), 0 4px 10px rgba(0, 122, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.auth-submit:active { transform: translateY(0) scale(0.98); }
.auth-submit:disabled { cursor: not-allowed; opacity: 0.8; transform: none; }

.auth-submit-text,
.auth-submit-arrow { transition: opacity var(--auth-transition-fast), transform var(--auth-transition-fast); }

.auth-submit-arrow { display: inline-flex; align-items: center; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(3px); }

.auth-submit-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: inherit;
}

.auth-submit.is-loading .auth-submit-text,
.auth-submit.is-loading .auth-submit-arrow { opacity: 0; }
.auth-submit.is-loading .auth-submit-loading { display: flex; }

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.30);
  border-top-color: #fff;
  border-radius: 999px;
  animation: authSpin 700ms linear infinite;
}

@keyframes authSpin { to { transform: rotate(360deg); } }

/* ============================================================
   12. DIVIDER & SOCIAL BUTTONS
   ============================================================ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 120, 128, 0.25), transparent);
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.auth-social { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 120, 128, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(120, 120, 128, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-social-btn svg { flex-shrink: 0; }

[data-theme="dark"] .auth-social-btn { background: rgba(44, 44, 46, 0.6); border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .auth-social-btn:hover { background: rgba(58, 58, 60, 0.9); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

/* ============================================================
   13. ELEMENTE EXTRA (Legal, Back Link, Info Box)
   ============================================================ */
.auth-legal { text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); letter-spacing: -0.01em; margin-top: 8px; }
.auth-legal a { color: var(--accent); font-weight: 500; text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; text-underline-offset: 2px; }

.auth-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; margin-bottom: 24px; letter-spacing: -0.01em; transition: color var(--auth-transition-fast), transform var(--auth-transition-fast); }
.auth-back-link:hover { color: var(--accent); transform: translateX(-2px); }
.auth-back-link svg { flex-shrink: 0; }

.auth-icon-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 28px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(0, 199, 190, 0.10));
  border: 1px solid rgba(0, 122, 255, 0.18);
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.70);
  animation: authIconFloat 4s ease-in-out infinite;
}
@keyframes authIconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.auth-info-box { padding: 16px 18px; border-radius: var(--radius-md); background: rgba(0, 122, 255, 0.06); border: 1px solid rgba(0, 122, 255, 0.15); margin-bottom: 24px; }
.auth-info-box-header { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent); margin-bottom: 12px; letter-spacing: -0.01em; }
.auth-info-box-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.auth-info-box-list li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); letter-spacing: -0.01em; }
.auth-info-box-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); opacity: 0.6; }

.auth-actions-stack { display: flex; flex-direction: column; gap: 12px; }
.auth-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; background: transparent; border: 1px solid rgba(120, 120, 128, 0.20); letter-spacing: -0.01em; transition: background var(--auth-transition-fast), color var(--auth-transition-fast), border-color var(--auth-transition-fast); }
.auth-secondary-action:hover { background: rgba(120, 120, 128, 0.08); border-color: rgba(120, 120, 128, 0.35); color: var(--text); }

/* ============================================================
   14. RESPONSIVE (Mobil)
   ============================================================ */
@media (max-width: 1024px) {
  .auth-branding { padding: 40px 32px; }
  .auth-branding-title { font-size: 28px; }
  .auth-branding-description { font-size: 14.5px; }
  .auth-branding-features li { font-size: 14px; }
  .auth-branding-stats { gap: 16px; }
  .auth-branding-stat-value { font-size: 18px; }
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-branding { display: none; }
  .auth-mobile-logo { display: inline-flex; margin-bottom: 24px; padding: 8px 0; }
  
  .auth-form-panel {
    padding: 32px 16px max(32px, env(safe-area-inset-bottom, 32px));
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
  }

  .auth-form-wrapper {
    max-width: 440px;
    width: 100%;
    padding: 28px 22px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.06) 100%), rgba(28, 28, 30, 0.65);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  }

  html:not([data-theme="dark"]) .auth-form-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 255, 255, 0.30) 50%, rgba(255, 255, 255, 0.45) 100%), rgba(255, 255, 255, 0.40);
    border-color: rgba(255, 255, 255, 0.70);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.20);
  }
}

@media (max-width: 600px) {
  .auth-form-panel { padding: 24px 16px max(24px, env(safe-area-inset-bottom, 24px)); }
  .auth-mobile-logo { font-size: 16px; }
  .auth-mobile-logo svg { width: 32px; height: 32px; }
  .auth-form-header { margin-bottom: 24px; }
  .auth-form-title { font-size: 26px; }
  .auth-form-subtitle { font-size: 14px; }
  .auth-form { gap: 18px; }
  .auth-input { padding: 13px 42px 13px 42px; font-size: 15px; }
  .auth-form-row { grid-template-columns: 1fr; gap: 18px; }
  .auth-role-selector { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 20px 14px max(20px, env(safe-area-inset-bottom, 20px)); }
  .auth-form-title { font-size: 24px; }
  .auth-input { padding: 12px 40px 12px 40px; font-size: 14.5px; }
  .auth-input-icon { left: 12px; }
  .auth-password-toggle { right: 10px; width: 30px; height: 30px; }
  .auth-input-feedback { right: 40px; }
  .auth-submit { padding: 14px 20px; font-size: 14.5px; }
}

/* ============================================================
   15. TOUCH & ACCESSIBILITY
   ============================================================ */
@media (hover: none) {
  .auth-submit:hover::before { transform: translateX(-100%); }
  .auth-submit:hover { transform: none; box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35), 0 2px 8px rgba(0, 122, 255, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.30); }
  .auth-submit:hover .auth-submit-arrow { transform: none; }
  .auth-role-card:hover { transform: none; }
}

.auth-input:focus-visible, .auth-submit:focus-visible, .auth-link:focus-visible, .auth-form-link:focus-visible, .auth-password-toggle:focus-visible, .auth-social-btn:focus-visible, .auth-secondary-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .auth-alert, .auth-input-feedback, .auth-spinner, .auth-icon-hero, .auth-branding-bg::before, .auth-branding-bg::after, .auth-role-check { animation: none !important; }
  .auth-submit, .auth-submit-arrow, .auth-submit::before, .auth-password-toggle, .auth-branding-logo, .auth-role-card, .auth-role-icon, .auth-check-box { transition: none !important; }
  .auth-submit:hover, .auth-submit:hover .auth-submit-arrow, .auth-submit:hover::before { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .auth-form-wrapper, .auth-role-card, .auth-input, .auth-check-box, .auth-social-btn, .auth-branding-feature-icon {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--auth-glass-strong) !important;
  }
}

/* ============================================================
   16. AUTOFILL & LOGO SWITCHING
   ============================================================ */
.auth-input:-webkit-autofill, .auth-input:-webkit-autofill:hover, .auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .auth-input:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f7;
  -webkit-box-shadow: 0 0 0 1000px rgba(44, 44, 46, 0.95) inset;
}

.logo-icon-light { display: inline-block !important; }
.logo-icon-dark  { display: none !important; }
[data-theme="dark"] .logo-icon-light { display: none !important; }
[data-theme="dark"] .logo-icon-dark  { display: inline-block !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-icon-light { display: none !important; }
  html:not([data-theme="light"]) .logo-icon-dark  { display: inline-block !important; }
}

/* ============================================================
   PATCH: FIX BIFĂ CHECKBOX & LIGHT MODE PREMIUM
   ============================================================ */

/* 1. FIX BIFĂ "ȚINE-MĂ MINTE" */
/* Forțăm o bifă albă desenată din CSS ca să fim siguri că se vede */
.auth-check-input:checked ~ .auth-check-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Ascundem SVG-ul vechi din interior dacă există, ca să nu se suprapună */
.auth-check-input:checked ~ .auth-check-box svg {
  display: none;
}

/* 2. LIGHT MODE PREMIUM PENTRU PANOUL STÂNGA */
/* Schimbăm albastrul strident cu un fundal alb, curat, cu reflexii fine (stil macOS) */
html:not([data-theme="dark"]) .auth-branding {
  background: #ffffff;
  background-image: 
    radial-gradient(ellipse at 10% 10%, rgba(0, 122, 255, 0.12), transparent 60%),
    radial-gradient(ellipse at 90% 90%, rgba(0, 199, 190, 0.08), transparent 60%);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 15px 0 40px -10px rgba(0, 0, 0, 0.03);
}

/* 3. SCHIMBĂM CULOAREA TEXTULUI ÎN LIGHT MODE */
/* Textul trebuie să fie închis la culoare pe noul fundal alb */
html:not([data-theme="dark"]) .auth-branding-content,
html:not([data-theme="dark"]) .auth-branding-logo,
html:not([data-theme="dark"]) .auth-branding-features li,
html:not([data-theme="dark"]) .auth-branding-stat-value {
  color: #1c1c1e;
}

html:not([data-theme="dark"]) .auth-branding-description,
html:not([data-theme="dark"]) .auth-branding-stat-label {
  color: #666666;
}

/* Iconițele mici de la listă (bifele) */
html:not([data-theme="dark"]) .auth-branding-feature-icon {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.15);
  color: #007aff;
  box-shadow: none;
}

/* Textul colorat ("prestatori de încredere") rămâne vibrant */
html:not([data-theme="dark"]) .auth-branding-highlight {
  background: linear-gradient(135deg, #007aff 0%, #00c7be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 122, 255, 0.15));
}

/* Liniile despărțitoare și statisticile */
html:not([data-theme="dark"]) .auth-branding-stats {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html:not([data-theme="dark"]) .auth-branding-stat-divider {
  background: rgba(0, 0, 0, 0.08);
}

/* Ascundem globurile foarte stridente (Orbs) în light mode */
html:not([data-theme="dark"]) .auth-branding-bg::before,
html:not([data-theme="dark"]) .auth-branding-bg::after {
  opacity: 0.2;
}

/* ============================================================
   PATCH FINAL: FORȚARE BIFĂ CHECKBOX (ȚINE-MĂ MINTE)
   ============================================================ */

/* 1. Forțăm fundalul albastru când este bifat */
.auth-check input[type="checkbox"]:checked ~ .auth-check-box,
.auth-check-input:checked ~ .auth-check-box,
input[type="checkbox"]:checked + .auth-check-box {
  background: #007aff !important; /* Albastru solid ca fallback */
  background-image: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.30) !important;
}

/* 2. Desenăm bifa albă folosind CSS (fără SVG) */
.auth-check input[type="checkbox"]:checked ~ .auth-check-box::after,
.auth-check-input:checked ~ .auth-check-box::after,
input[type="checkbox"]:checked + .auth-check-box::after {
  content: '' !important;
  display: block !important;
  width: 4px !important;
  height: 8px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  margin-bottom: 2px !important;
}

/* 3. Ascundem orice SVG vechi din interior ca să nu se suprapună */
.auth-check-box svg {
  display: none !important;
}

/* ============================================================
   PATCH FINAL: FIX SCROLL INTELIGENT PE MOBIL
   ============================================================ */

@media (max-width: 900px) {
  /* 1. Blocăm scroll-ul pe body ca să nu mișcăm tot fundalul */
  html, body.auth-page {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important; 
  }

  /* 2. Containerul principal stă fix */
  .auth-split {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* 3. Panoul devine zona cu scroll */
  .auth-form-panel {
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important; /* Permite scroll aici */
    -webkit-overflow-scrolling: touch !important;
    
    /* SCOS: justify-content: center !important; - Aceasta era problema */
    justify-content: flex-start !important; 
    display: flex !important;
    flex-direction: column !important;
    
    padding: 24px 16px max(24px, env(safe-area-inset-bottom, 24px)) !important;
  }

  /* 4. Centrarea inteligentă: dacă e loc, se centrează. Dacă nu, permite scroll */
  .auth-form-wrapper {
    margin: auto !important; 
    flex-shrink: 0 !important; /* Previne turtirea formularului */
  }

  /* Logo-ul de sus să nu se micșoreze când dai scroll */
  .auth-mobile-logo {
    flex-shrink: 0 !important;
  }
}

/* ============================================================
   PATCH: STILIZARE LINK "NU AI CONT? ÎNREGISTREAZĂ-TE"
   ============================================================ */

/* Containerul textului de jos */
.auth-bottom-prompt {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 120, 128, 0.15); /* Linie fină despărțitoare */
  text-align: center;
  font-size: 14.5px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* Modificare linie pentru Dark Mode */
[data-theme="dark"] .auth-bottom-prompt {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Stilul pentru link (Înregistrează-te) */
.auth-bottom-prompt a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px; /* Spațiu mic între text și link */
  position: relative;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Efect la hover (sublinire fină) */
.auth-bottom-prompt a::after {
  content: '';
  position: absolute;/* =========================================
   FIX PENTRU LOGO-UL DIN PAGINA DE 2FA (LIGHT/DARK)
   ========================================= */

/* 1. Starea implicită (Light Mode) */
.verify-logo .logo-light { display: inline-block !important; }
.verify-logo .logo-dark { display: none !important; }

/* 2. Când utilizatorul alege Dark Mode din butonul site-ului */
[data-theme="dark"] .verify-logo .logo-light { display: none !important; }
[data-theme="dark"] .verify-logo .logo-dark { display: inline-block !important; }

/* 3. Când utilizatorul are Dark Mode setat în Sistemul de Operare */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .verify-logo .logo-light { display: none !important; }
  html:not([data-theme="light"]) .verify-logo .logo-dark { display: inline-block !important; }
}
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  border-radius: 2px;
}

.auth-bottom-prompt a:hover {
  color: var(--accent-hover);
  transform: translateY(-1px); /* Se ridică puțin la hover */
}

.auth-bottom-prompt a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* =========================================
   FIX PENTRU LOGO-UL DIN PAGINA DE 2FA (LIGHT/DARK)
   ========================================= */

/* 1. Starea implicită (Light Mode) */
.verify-logo .logo-light { display: inline-block !important; }
.verify-logo .logo-dark { display: none !important; }

/* 2. Când utilizatorul alege Dark Mode din butonul site-ului */
[data-theme="dark"] .verify-logo .logo-light { display: none !important; }
[data-theme="dark"] .verify-logo .logo-dark { display: inline-block !important; }

/* 3. Când utilizatorul are Dark Mode setat în Sistemul de Operare */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .verify-logo .logo-light { display: none !important; }
  html:not([data-theme="light"]) .verify-logo .logo-dark { display: inline-block !important; }
}