/* ================================================================
   Workline – Auth Modern (auth-modern.css)
   Regisztráció és belépés modern, prémium oldalstílusa
   Verziószám: 2026-07-16
   ================================================================ */

/* ── CSS változók (auth-specifikus) ──────────────────────── */
:root {
  --auth-magenta:     #A20049;
  --auth-magenta-d:   #7a0037;
  --auth-magenta-l:   #fde8ee;
  --auth-purple:      #4d2459;
  --auth-purple-d:    #3b1a45;
  --auth-navy:        #0f172a;
  --auth-grad:        linear-gradient(-90deg,#4d2459,#781251 18%,#a20049 48%,#bb144c 77%,#d4284f);
  --auth-grad-soft:   linear-gradient(135deg,#a20049 0%,#4d2459 100%);
  --auth-card-radius: 20px;
  --auth-input-h:     52px;
  --auth-btn-h:       52px;
  --auth-input-radius:12px;
  --auth-shadow:      0 4px 24px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --auth-shadow-lg:   0 20px 60px rgba(15,23,42,.14);
  --auth-border:      #e5e7eb;
  --auth-text:        #1e293b;
  --auth-muted:       #64748b;
  --auth-bg:          #f7f8fa;
}

/* ================================================================
   TELJES OLDALSTRUKTÚRA
   ================================================================ */
.auth-split {
  display: flex;
  min-height: calc(100vh - 70px);
  background: var(--auth-bg);
}

/* ── Bal: Vizuális panel ──────────────────────────────── */
.auth-visual {
  flex: 0 0 46%;
  max-width: 46%;
  position: relative;
  overflow: hidden;
  background: var(--auth-navy);
  display: flex;
  flex-direction: column;
}

/* Háttér-overlay (csak ha nincs külön .auth-visual-img-overlay) */
.auth-visual:not(:has(.auth-visual-img-overlay))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(77,36,89,.92) 0%,
    rgba(120,18,81,.85) 40%,
    rgba(162,0,73,.75) 75%,
    rgba(187,20,76,.65) 100%
  );
  z-index: 1;
}

/* Pontmintázat dekoráció */
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 2;
  pointer-events: none;
}

/* Háttérkép (ha elérhető) */
.auth-visual--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-visual-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
}

/* Logó */
.auth-visual-logo {
  margin-bottom: 40px;
}
.auth-visual-logo img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Főcím */
.auth-visual-headline {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 16px;
  letter-spacing: -.3px;
}
.auth-visual-headline mark {
  background: none;
  color: #ffb3d0;
  font-style: italic;
}

/* Alcím */
.auth-visual-sub {
  font-size: 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 400px;
}

/* Előnyök lista */
.auth-visual-benefits {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-visual-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.5;
}
.auth-visual-benefit-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.auth-visual-benefit-icon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
}

/* Statisztikák */
.auth-visual-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.auth-visual-stat {
  display: flex;
  flex-direction: column;
}
.auth-visual-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.auth-visual-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  letter-spacing: .3px;
}

/* Bizalom-elem */
.auth-visual-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  max-width: 100%;
}

/* Kép overlay (a ::before-tól eltér: külön elem a jobb irányításhoz) */
.auth-visual-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(29,19,64,.92) 0%,
    rgba(91,15,78,.80) 50%,
    rgba(181,0,82,.42) 100%
  );
  pointer-events: none;
}

/* Regisztrációs link sor (form alatt) */
.auth-reg-link-row {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.5;
}
.auth-reg-link-row a {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.auth-visual-trust-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-visual-trust-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}
.auth-visual-trust-text {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
}
.auth-visual-trust-text strong {
  display: block;
  color: #fff;
  font-weight: 700;
}

/* Fényfolt dekoráció */
.auth-visual-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.auth-visual-glow--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,80,140,.25) 0%, transparent 70%);
  top: -80px;
  right: -80px;
}
.auth-visual-glow--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,40,100,.2) 0%, transparent 70%);
  bottom: 60px;
  left: -60px;
}

/* ── Jobb: Form panel ────────────────────────────────────── */
.auth-form-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--auth-bg);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Halvány háttér dekoráció */
.auth-form-side::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(162,0,73,.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.auth-form-container {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 56px;
  position: relative;
  z-index: 1;
}

/* Már van fiókod → belépés sor */
.auth-existing-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--auth-muted);
}
.auth-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1.5px solid var(--auth-magenta);
  border-radius: 20px;
  color: var(--auth-magenta);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.auth-login-btn:hover {
  background: var(--auth-magenta);
  color: #fff;
  text-decoration: none;
}

/* ================================================================
   TÍPUSVÁLASZTÓ SZEGMENTÁLT VEZÉRLŐ
   ================================================================ */
/* Overflow-x fix – minden breakponton */
.auth-split,
.auth-form-side,
.auth-form-container,
.auth-form-card {
  min-width: 0;
}

/* ================================================================
   TÍPUSVÁLASZTÓ SZEGMENTÁLT VEZÉRLŐ
   ================================================================ */
.auth-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1.5px solid var(--auth-border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

/* 4 oszlopos változat (belépési oldal) */
.auth-type-selector.auth-type-4 {
  grid-template-columns: repeat(4, 1fr);
}
.auth-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .18s;
  cursor: pointer;
  user-select: none;
  line-height: 1.3;
  text-align: center;
}
.auth-type-option:hover:not(.active) {
  background: var(--auth-magenta-l);
  color: var(--auth-magenta);
  text-decoration: none;
}
.auth-type-option.active {
  background: var(--auth-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(162,0,73,.28);
  text-decoration: none;
}
.auth-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.auth-type-icon svg {
  width: 18px;
  height: 18px;
  transition: stroke .18s;
}
.auth-type-option:not(.active) .auth-type-icon svg { stroke: #6b7280; }
.auth-type-option.active .auth-type-icon svg { stroke: #fff; }

/* ================================================================
   HIBAÜZENETEK
   ================================================================ */
.auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #b91c1c;
  line-height: 1.6;
}
.auth-error-box [role="alert"] {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.auth-error-item + .auth-error-item { margin-top: 4px; }
.auth-error-item::before { content: '• '; }

/* ================================================================
   FORM KÁRTYA
   ================================================================ */
.auth-form-card {
  background: #fff;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-card-radius);
  padding: 32px 36px;
  box-shadow: var(--auth-shadow);
}

.auth-form-card-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.auth-form-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--auth-text);
  margin: 0 0 6px;
  line-height: 1.3;
}
.auth-form-subtitle {
  font-size: 14px;
  color: var(--auth-muted);
  margin: 0;
  line-height: 1.55;
}

/* ================================================================
   SOCIAL LOGIN GOMBOK
   ================================================================ */
.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--auth-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 12px;
}
.auth-social-btn:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none;
  color: var(--auth-text);
}
.auth-social-btn svg { flex-shrink: 0; }
.auth-social-btn .auth-social-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Elválasztó */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 22px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

/* ================================================================
   FORMMEZŐK
   ================================================================ */
.auth-field {
  margin-bottom: 18px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
  margin-bottom: 7px;
  line-height: 1.4;
}
.auth-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--auth-muted);
  margin-left: 4px;
}
.auth-required {
  color: #dc2626;
  font-size: 11px;
  margin-left: 2px;
}
.auth-hint-text {
  font-size: 12px;
  color: var(--auth-muted);
  margin: 5px 0 0;
  line-height: 1.5;
}

/* Input mező */
.auth-input-wrap { position: relative; }
.auth-input {
  display: block;
  width: 100%;
  height: var(--auth-input-h);
  padding: 0 16px;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-input-radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--auth-text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.auth-input:focus {
  border-color: var(--auth-magenta);
  box-shadow: 0 0 0 3px rgba(162,0,73,.1);
}
.auth-input::placeholder { color: #adb5bd; }
.auth-input.auth-input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}
.auth-input.auth-input--ok {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.08);
}

/* Jelszó mező */
.auth-pass-wrap {
  position: relative;
}
.auth-pass-input {
  padding-right: 48px;
}
.auth-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--auth-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color .12s;
}
.auth-pass-toggle:hover { color: var(--auth-text); }
.auth-pass-toggle svg { width: 18px; height: 18px; }

/* Jelszó szabályok */
.auth-pw-rules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.auth-pw-rule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f3f4f6;
  color: #6b7280;
  transition: background .2s, color .2s;
}
.auth-pw-rule.ok {
  background: #dcfce7;
  color: #15803d;
}
.auth-pw-rule.ok::before { content: '✓ '; }
.auth-pw-strength {
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  min-height: 16px;
  transition: color .2s;
}

/* CAPTCHA */
.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.auth-captcha-q {
  font-size: 15px;
  color: var(--auth-text);
  white-space: nowrap;
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--auth-border);
}
.auth-captcha-input {
  max-width: 100px;
  text-align: center;
}

/* Autocomplete dropdown */
.auth-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 200;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

/* ================================================================
   HOZZÁJÁRULÁSOK (GDPR)
   ================================================================ */
.auth-consents {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8f9fa;
  border: 1.5px solid transparent;
  transition: border-color .12s, background .12s;
}
.auth-consent-item:hover {
  border-color: #d1d5db;
  background: #f1f5f9;
}
.auth-consent-item.auth-consent-optional {
  background: #fefce8;
  border-color: #fef08a;
}
.auth-consent-item.auth-consent-optional:hover {
  border-color: #fbbf24;
  background: #fef9c3;
}
.auth-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--auth-magenta);
  cursor: pointer;
}
.auth-consent-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
}
.auth-consent-text a {
  color: var(--auth-magenta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(162,0,73,.3);
}
.auth-consent-text a:hover { border-bottom-style: solid; }
.auth-consent-opt-label {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ================================================================
   BEKÜLDÉS GOMB
   ================================================================ */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--auth-btn-h);
  border: none;
  border-radius: var(--auth-input-radius);
  background: var(--auth-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(162,0,73,.3);
  letter-spacing: .2px;
  position: relative;
  overflow: hidden;
}
.auth-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}
.auth-submit-btn:hover {
  opacity: .93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(162,0,73,.4);
}
.auth-submit-btn:active {
  transform: translateY(0);
  opacity: 1;
}
.auth-submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.auth-submit-btn .auth-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
  margin-right: 8px;
}
.auth-submit-btn.loading .auth-btn-spinner { display: block; }
.auth-submit-btn.loading .auth-btn-text { opacity: .7; }
@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-submit-hint {
  text-align: center;
  font-size: 12px;
  color: var(--auth-muted);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ================================================================
   SIKERÜZENET
   ================================================================ */
.auth-success-card {
  background: #fff;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--auth-card-radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--auth-shadow);
}
.auth-success-icon {
  width:72px;height:72px;margin:0 auto 22px;display:grid;place-items:center;
  color:var(--auth-magenta);filter:drop-shadow(0 10px 18px rgba(162,0,73,.12));
}
.auth-success-icon svg{display:block;width:72px;height:72px}
.ceg-match-logo-placeholder svg{width:20px;height:20px}
.auth-success-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--auth-text);
  margin: 0 0 14px;
}
.auth-success-text {
  color: var(--auth-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 15px;
}
.auth-success-note {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
  display: block;
  margin-top: 8px;
}

/* ================================================================
   AUTH LÁBLÉC (egyszerűsített)
   ================================================================ */
.auth-footer {
  background: var(--auth-navy);
  padding: 0;
}
.auth-footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.auth-footer-copy {
  color: rgba(255,255,255,.5);
}
.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.auth-footer-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .12s;
}
.auth-footer-links a:hover { color: #fff; }
.auth-footer-sep {
  color: rgba(255,255,255,.25);
}

/* ================================================================
   BELÉPÉSI OLDAL SPECIFIKUS
   ================================================================ */
.auth-login-page .auth-form-card {
  /* Login kártyán nincs típusválasztó → kicsit nagyobb padding */
  padding-top: 36px;
}
.auth-forgot-link {
  font-size: 13px;
  color: var(--auth-magenta);
  text-decoration: none;
  font-weight: 600;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Elfelejtett jelszó sor a jelszó label-ben */
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.auth-label-row .auth-label { margin-bottom: 0; }

/* ================================================================
   ANIMÁCIÓ (típusváltáskor)
   ================================================================ */
.auth-split-content {
  animation: authFadeIn .2s ease forwards;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.auth-split-content.fading {
  animation: authFadeOut .15s ease forwards;
}
@keyframes authFadeOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* ================================================================
   MEZŐ ÁLLAPOT JELZŐK
   ================================================================ */
.auth-field-status {
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
  line-height: 1.4;
}

/* ================================================================
   HONEYPOT
   ================================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ================================================================
   DARK MODE OVERRIDES
   ================================================================ */
html.dark .auth-form-side {
  background: #0f172a;
}
html.dark .auth-form-side::before {
  background: radial-gradient(circle, rgba(162,0,73,.08) 0%, transparent 65%);
}
html.dark .auth-form-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
html.dark .auth-form-card-header {
  border-bottom-color: #334155;
}
html.dark .auth-form-title { color: #f1f5f9; }
html.dark .auth-form-subtitle { color: #94a3b8; }
html.dark .auth-type-selector {
  background: #1e293b;
  border-color: #334155;
}
html.dark .auth-type-option { color: #94a3b8; }
html.dark .auth-type-option:hover:not(.active) {
  background: rgba(162,0,73,.15);
  color: #fda4af;
}
html.dark .auth-input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dark .auth-input:focus {
  border-color: var(--auth-magenta);
  box-shadow: 0 0 0 3px rgba(162,0,73,.2);
}
html.dark .auth-input::placeholder { color: #475569; }
html.dark .auth-label { color: #e2e8f0; }
html.dark .auth-hint  { color: #94a3b8; }
html.dark .auth-social-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dark .auth-social-btn:hover {
  border-color: #475569;
  background: #2d3748;
}
html.dark .auth-or-divider { color: #475569; }
html.dark .auth-or-divider::before,
html.dark .auth-or-divider::after { background: #334155; }
html.dark .auth-consent-item {
  background: #1e293b;
  border-color: transparent;
}
html.dark .auth-consent-item:hover {
  background: #2d3748;
  border-color: #475569;
}
html.dark .auth-consent-item.auth-consent-optional {
  background: #1f1e0f;
  border-color: #3f3a0f;
}
html.dark .auth-consent-text { color: #cbd5e1; }
html.dark .auth-captcha-q {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dark .auth-pw-rule {
  background: #2d3748;
  color: #94a3b8;
}
html.dark .auth-error-box {
  background: #3b0f0f;
  border-color: #991b1b;
  color: #fca5a5;
}
html.dark .auth-existing-link { color: #94a3b8; }
html.dark .auth-login-btn { border-color: #a20049; color: #fda4af; }
html.dark .auth-footer { background: #050d1a; }
html.dark .auth-success-card { background: #1e293b; border-color: #166534; }
html.dark .auth-success-title { color: #f1f5f9; }

/* ================================================================
   RESZPONZÍV
   ================================================================ */

/* 1280px – kicsit szűkebb bal panel */
@media (max-width: 1280px) {
  .auth-visual { flex: 0 0 42%; max-width: 42%; }
  .auth-visual-inner { padding: 48px 36px; }
  .auth-form-container { padding: 32px 24px 48px; }
  .auth-form-card { padding: 28px 30px; }
}

/* 1024px – közepes képernyő */
@media (max-width: 1024px) {
  .auth-visual { flex: 0 0 40%; max-width: 40%; }
  .auth-visual-inner { padding: 40px 28px; }
  .auth-visual-headline { font-size: clamp(22px, 3vw, 30px); }
  .auth-form-card { padding: 24px 24px; }
  /* 4 oszlopos választó 2x2-re törik */
  .auth-type-selector.auth-type-4 { grid-template-columns: repeat(2, 1fr); }
}

/* 768px – tablet, váltás egy oszlopra */
@media (max-width: 768px) {
  .auth-split {
    flex-direction: column;
    min-height: auto;
  }
  .auth-visual {
    flex: none;
    max-width: 100%;
    min-height: 0;
    max-height: 280px;
  }
  .auth-visual-inner {
    padding: 28px 20px;
    justify-content: flex-end;
  }
  .auth-visual-logo { display: none; }
  .auth-visual-headline {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 8px;
  }
  .auth-visual-sub { display: none; }
  .auth-visual-benefits { display: none; }
  .auth-visual-stats { gap: 16px; }
  .auth-visual-stat-value { font-size: 20px; }
  .auth-visual-trust { display: none; }
  .auth-form-side { overflow-x: hidden; overflow-y: visible; }
  .auth-form-container {
    padding: 24px 16px 40px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .auth-type-selector { grid-template-columns: repeat(3, 1fr); }
  .auth-type-selector.auth-type-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-type-option { padding: 10px 6px; font-size: 12px; }
  .auth-existing-link { margin-bottom: 20px; }
  .auth-social-buttons { grid-template-columns: 1fr; }
  .auth-form-card {
    padding: 20px 18px;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

/* 430px – nagy mobil */
@media (max-width: 430px) {
  .auth-visual { max-height: 200px; }
  .auth-visual-headline { font-size: 20px; }
  .auth-type-option { font-size: 11px; gap: 4px; padding: 8px 4px; }
  .auth-type-icon { width: 22px; height: 22px; }
  .auth-type-icon svg { width: 14px; height: 14px; }
  .auth-input { height: 50px; font-size: 16px; } /* prevent zoom on iOS */
  .auth-submit-btn { height: 50px; font-size: 15px; }
}

/* 390px és 360px */
@media (max-width: 390px) {
  .auth-form-card { padding: 18px 14px; }
  .auth-social-buttons { gap: 8px; }
  .auth-type-selector { padding: 3px; gap: 3px; }
  .auth-type-selector.auth-type-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Nagy képernyő – ne nyúljon szét */
@media (min-width: 1600px) {
  .auth-form-container { max-width: 680px; }
  .auth-visual-inner { padding: 64px 64px; max-width: 660px; margin: 0 auto; }
}

/* ================================================================
   OVERFLOW-X GLOBÁLIS JAVÍTÁS
   (lebegő oldalsó gombok és fix szélességű elemek ellen)
   ================================================================ */
.auth-split {
  max-width: 100%;
  overflow-x: hidden;
}
.auth-type-selector,
.auth-social-buttons,
.auth-form-card {
  box-sizing: border-box;
  max-width: 100%;
}

/* Belső konténer min-width nulla */
.auth-form-container * {
  min-width: 0;
}

