/* nepptic myLink – Anmeldeseiten im Sphere-Stil: Vollbild-Motiv, Mosaik, schwebende Karte */
body.auth-body { background: #030A17; color: #fff; min-height: 100vh; overflow-x: hidden; }

/* ---------- Hintergrund ---------- */
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #030A17 var(--login-bg) var(--login-pos, 50% 50%) / cover no-repeat; animation: authBg 1.4s ease both; }
.auth-bg::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,10,23,.9) 0%, rgba(3,10,23,.66) 30%, rgba(3,10,23,.22) 58%, rgba(3,10,23,.38) 100%),
    linear-gradient(0deg, rgba(3,10,23,.78) 0%, rgba(3,10,23,0) 42%),
    linear-gradient(180deg, rgba(3,10,23,.55) 0%, rgba(3,10,23,0) 22%); }
.auth-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
@keyframes authBg { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Mosaik um die Karte ---------- */
.auth-mosaic { --u: 92px; --cl: calc(100% - 532px); --ct: calc(50% - 250px); position: absolute; inset: 0; z-index: 2; }
.auth-mosaic i { position: absolute; width: var(--u); height: var(--u); left: calc(var(--cl) + var(--x) * var(--u)); top: calc(var(--ct) + var(--y) * var(--u));
  animation: tileIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(500ms + var(--d)); }
.auth-mosaic .t-f { background: rgba(11,37,69,.92); }
.auth-mosaic .t-n { background: rgba(31,95,191,.82); }
.auth-mosaic .t-e { background: rgba(90,176,240,.62); }
.auth-mosaic .t-g { background: rgba(255,255,255,.1); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.auth-mosaic .t-b { background: var(--login-bg) var(--login-pos, 50% 50%) / cover no-repeat fixed; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 20px 40px -20px rgba(0,0,0,.6); }
@keyframes tileIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Aufbau ---------- */
body.auth-body .auth { position: relative; z-index: 3; min-height: 100vh; }
body.auth-body .auth-split { display: grid; grid-template-columns: minmax(0, 1fr) 560px; min-height: 100vh; }

/* Linke Seite: Text auf dem Motiv */
body.auth-body .auth-art { position: relative; display: flex; align-items: flex-end; padding: 44px 64px 54px; background: none !important; color: #fff; overflow: visible; }
body.auth-body .auth-art::before { display: none; }
body.auth-body .auth-art-inner { position: static; max-width: 640px; animation: authFade 1s ease .25s both; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
body.auth-body .auth-art .brand { position: absolute; top: 40px; left: 64px; padding: 0; color: #fff; }
body.auth-body .auth-art .brand .nbrand__txt strong { font-size: 26px; }
body.auth-body .auth-art .brand .nbrand__txt small { color: #8FCBF7; }
.auth-eyebrow { margin: 0 0 14px; font: 700 12.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8FCBF7; }
body.auth-body .auth-art h2 { font: 800 clamp(38px, 4.3vw, 64px)/1.03 var(--display); letter-spacing: -.045em; margin: 0 0 18px; max-width: 14ch; color: #fff; text-wrap: balance; }
body.auth-body .auth-art p, .auth-sub { color: rgba(232,238,245,.82); font-size: 17px; line-height: 1.55; max-width: 46ch; margin: 0 0 26px; }
body.auth-body .auth-art ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 10px; }
body.auth-body .auth-art ul.auth-pills { flex-direction: row; flex-wrap: wrap; gap: 8px; }
body.auth-body .auth-art li { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 14.5px; }
body.auth-body .auth-art li .i { padding: 0; width: 16px; height: 16px; background: none; color: #8FCBF7; }
body.auth-body .auth-art ul.auth-pills li, body.auth-body .auth-art ul:not(.auth-pills) li { padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.auth-body .auth-art ul:not(.auth-pills) li { align-self: flex-start; }
body.auth-body .auth-art small { color: rgba(201,214,227,.6); font-size: 12.5px; letter-spacing: .02em; }

/* Rechte Seite: Karte */
body.auth-body .auth-form { position: relative; display: grid; place-items: center; padding: 40px 64px 40px 0; background: none; }
body.auth-body .auth-card { position: relative; width: 100%; max-width: 440px; padding: 42px 40px 30px; border-radius: 24px; color: var(--text);
  background: rgba(255,255,255,.97); box-shadow: 0 50px 120px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.5);
  animation: authUp .8s cubic-bezier(.2,.8,.2,1) .15s both; }
body.auth-body .auth-card h1 { font: 800 30px/1.1 var(--display); letter-spacing: -.04em; margin: 0 0 8px; color: var(--text); }
body.auth-body .auth-card > .muted { margin: 0 0 26px; font-size: 15px; }
body.auth-body .auth-card .field { color: var(--text-2); }
body.auth-body .auth-card input[type=email], body.auth-body .auth-card input[type=password], body.auth-body .auth-card input[type=text] { height: 48px; font-size: 15.5px; border-radius: 12px; }
body.auth-body .auth-card .btn.big { height: 52px; border-radius: 14px; font-size: 16px; }
body.auth-body .auth-card .btn.primary { background: #0B2545; border-color: #0B2545; color: #fff; }
body.auth-body .auth-card .btn.primary:hover { background: #1F5FBF; border-color: #1F5FBF; }
body.auth-body .auth-foot { margin-top: 20px; }
body.auth-body .auth-legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
body.auth-body .check-row.remember { font-size: 13.5px; color: var(--muted); }
@keyframes authUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Dunkelmodus: Karte dunkel, Glas-Kante */
:root[data-theme="dark"] body.auth-body .auth-card { background: rgba(14,36,64,.94); box-shadow: 0 50px 120px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(143,203,247,.18); backdrop-filter: blur(18px); }
:root[data-theme="dark"] body.auth-body .auth-card .btn.primary { background: #5AB0F0; border-color: #5AB0F0; color: #07182C; }
:root[data-theme="dark"] body.auth-body .auth-card .btn.primary:hover { background: #8FCBF7; border-color: #8FCBF7; }

/* ---------- Mittlere Breiten: Mosaik kleiner ---------- */
@media (max-width: 1240px) {
  body.auth-body .auth-split { grid-template-columns: minmax(0, 1fr) 500px; }
  body.auth-body .auth-form { padding-right: 40px; }
  .auth-mosaic { --u: 76px; --cl: calc(100% - 470px); }
  body.auth-body .auth-art { padding: 40px 48px 48px; }
  body.auth-body .auth-art .brand { left: 48px; }
}

/* ---------- Handy & Tablet hochkant ---------- */
@media (max-width: 980px) {
  .auth-mosaic { display: none; }
  .auth-bg::before { background: linear-gradient(180deg, rgba(3,10,23,.5) 0%, rgba(3,10,23,.35) 30%, rgba(3,10,23,.88) 62%, #030A17 100%); }
  body.auth-body .auth-split { grid-template-columns: 1fr; min-height: 0; }
  body.auth-body .auth-art { display: block; padding: 96px 22px 30px; min-height: 0; }
  body.auth-body .auth-art .brand { top: 26px; left: 22px; }
  body.auth-body .auth-art h2 { font-size: clamp(30px, 8.4vw, 42px); max-width: 16ch; }
  body.auth-body .auth-art p, .auth-sub { font-size: 15.5px; margin-bottom: 18px; }
  body.auth-body .auth-art ul, body.auth-body .auth-art small { display: none; }
  body.auth-body .auth-form { padding: 0 14px 28px; place-items: start center; }
  body.auth-body .auth-card { padding: 30px 22px 22px; border-radius: 22px; }
  body.auth-body .auth-card h1 { font-size: 26px; }
  body.auth-body .auth-card input[type=email], body.auth-body .auth-card input[type=password], body.auth-body .auth-card input[type=text] { font-size: 16px; }   /* kein Zoom auf dem iPhone */
}
@media (prefers-reduced-motion: reduce) { .auth-bg, .auth-mosaic i, body.auth-body .auth-card, body.auth-body .auth-art-inner { animation: none; } }
