/* Pap13 Nachtglas. Scoped to authentication; account/dashboard styles stay independent. */
body.ng-page.auth-page {
  --ng-text: #eaf1ff;
  --ng-muted: #a2b3cd;
  --ng-accent: #68a9ff;
  color-scheme: dark;
  color: var(--ng-text);
  background: radial-gradient(ellipse at 50% 0%, #152c49 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #10273e 0%, transparent 50%), #080f1d;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
}
.ng-page.auth-page::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(128,174,224,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,174,224,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(#000, transparent 85%);
}
.ng-page .ng-card {
  position: relative; isolation: isolate; flex-shrink: 0;
  width: 100%; max-width: 440px; margin: auto;
  padding: 28px 34px 26px; border-radius: 24px;
  color: var(--ng-text);
  border: 1px solid rgba(148,184,232,.18);
  background: linear-gradient(145deg, rgba(29,46,70,.92), rgba(16,29,48,.94));
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 32px 90px -24px rgba(0,0,0,.8), inset 0 1px rgba(205,226,255,.06);
}
.ng-page .ng-card::before {
  content: ''; position: absolute; top: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, #92b7e27a, transparent);
  pointer-events: none;
}
.ng-page .ng-header { text-align: center; margin-bottom: 28px; }
.ng-page .ng-eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 9px;
  color: #a6bfdf; font-size: 10px; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase; margin: 9px 0 12px;
}
.ng-page .ng-eyebrow span + span { color: #97a8c0; letter-spacing: .08em; }
.ng-page .ng-eyebrow span + span::before { content: '/'; margin-right: 9px; color: #546f92; }
.ng-page .ng-card h1 {
  margin: 0 0 8px; font-size: 27px; line-height: 1.22; font-weight: 650;
  letter-spacing: -.035em; color: #f0f5ff; text-align: center;
}
.ng-page .ng-card .subtitle {
  margin: 0; color: var(--ng-muted); font-size: 13px; line-height: 1.65; text-align: center;
}
.ng-page .ng-host { font-size: 12px; color: #a5c8f5; }
.ng-page .ng-beacon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; padding: 6px; margin: 0;
  color: #65aaff; background: radial-gradient(circle, rgba(72,143,240,.1), transparent 72%);
  border: 0; border-radius: 24px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ng-page .ng-beacon:hover:not(:disabled) { background-color: rgba(104,169,255,.045); }
.ng-page .ng-beacon:disabled { cursor: default; opacity: 1; }
.ng-page .ng-beacon svg { display: block; width: 64px; height: 64px; overflow: visible; fill: currentColor; }
.ng-page .ng-beacon [data-ng-part="rail"] { fill: none; stroke: currentColor; stroke-width: 1.4; }
.ng-page .ng-beacon [data-ng-part="seam"] { fill: none; stroke: #b7d9ff; stroke-width: 1; }
.ng-page .ng-beacon [data-ng-part="window"] { fill: #0f2139; }
.ng-page .ng-beacon [data-ng-part="lens"] { fill: #d5eeff; }
.ng-page .ng-beacon [data-ng-part="halo"] { fill: #77bcff; filter: blur(4px); }
.ng-page .ng-card label {
  display: block; margin: 0 0 7px; color: #becde1; font-size: 12px; font-weight: 500;
}
.ng-page .ng-card input:not([type="checkbox"]) {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 50px;
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid #344761;
  border-radius: 11px; background: rgba(6,16,31,.6); color: #edf5ff;
  font-family: inherit; font-size: 16px; outline: none;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.12);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ng-page .ng-card input::placeholder { color: #7e94b2; opacity: 1; }
.ng-page .ng-card input:focus {
  border-color: #75acfa; box-shadow: 0 0 0 3px rgba(90,159,255,.11), inset 0 1px 4px rgba(0,0,0,.15);
  background: rgba(10,23,43,.9);
}
.ng-page .ng-card input[data-ng-password] {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 16px; font-variant-ligatures: none; letter-spacing: .4px;
}
.ng-page .ng-card .ng-field { position: relative; margin-bottom: 18px; }
.ng-page .ng-card .ng-field input { margin: 0; padding-right: 56px; touch-action: pan-y; }
.ng-page .ng-card .ng-field.ng-painted input {
  color: transparent; -webkit-text-fill-color: transparent; caret-color: #edf5ff;
}
.ng-page .ng-card .ng-field.ng-painted input::placeholder { -webkit-text-fill-color: #7e94b2; }
.ng-page .ng-field canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; border-radius: 11px;
}
.ng-page .ng-eye {
  position: absolute; right: 3px; top: 3px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent;
  color: #a0b7d6; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.ng-page .ng-eye:hover { color: #d4e8ff; background: rgba(124,175,246,.09); }
.ng-page .ng-eye[aria-pressed="true"] { color: #b5dcff; background: rgba(78,152,255,.12); }
.ng-page .ng-eye svg, .ng-page .ng-passkey-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ng-page .ng-eye[aria-pressed="false"] .ng-eye-slash { display: none; }
.ng-page .ng-card .fg { margin: 0 0 18px; }
.ng-page .ng-card .fg input, .ng-page .ng-card .fg .ng-field { margin-bottom: 0; }
.ng-page .ng-card .ng-help {
  color: #a0b2cb; font-size: 11px; line-height: 1.55;
  margin: -10px 0 18px;
}
.ng-page .ng-card .ng-approval {
  display: flex; align-items: flex-start; gap: 9px; margin: 0 0 19px;
  padding: 12px; border-radius: 10px; border: 1px solid rgba(120,170,231,.12);
  background: rgba(100,157,229,.04); color: #b4c7e0; font-size: 11px; line-height: 1.6;
}
.ng-page .ng-approval svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: #95bcea; stroke-width: 1.5; }
.ng-page .ng-card button[type="submit"], .ng-page .ng-card .btn--primary {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 11px;
  border: 1px solid rgba(164,204,255,.25); background: linear-gradient(180deg, #4b92f5, #3377db);
  color: #fff; font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 600;
  cursor: pointer; box-shadow: 0 5px 15px rgba(11,65,145,.2), inset 0 1px rgba(255,255,255,.14);
  transition: background .18s, box-shadow .18s;
}
.ng-page .ng-card button[type="submit"]:hover, .ng-page .ng-card .btn--primary:hover {
  background: linear-gradient(180deg, #63a3fc, #3f83e6); box-shadow: 0 6px 22px rgba(32,99,197,.28);
}
.ng-page .ng-card button:disabled:not(.ng-beacon) { opacity: .5; cursor: not-allowed; }
.ng-page .ng-card .pkbtn, .ng-page .ng-card .pk-btn, .ng-page .ng-card .btn--ghost {
  align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px;
  padding: 11px 12px; border: 1px solid #3a4c64; border-radius: 11px;
  background: rgba(179,210,255,.025); color: #d2e0f3;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.ng-page .ng-card .pkbtn:hover, .ng-page .ng-card .pk-btn:hover { background: rgba(147,190,250,.07); border-color: #7296c1; }
.ng-page .ng-card .divider, .ng-page .ng-card .auth-divider {
  display: flex; align-items: center; gap: 15px; margin: 20px 0;
  font-size: 11px; color: #a0b1c8;
}
.ng-page .ng-card .divider::before, .ng-page .ng-card .divider::after,
.ng-page .ng-card .auth-divider::before, .ng-page .ng-card .auth-divider::after {
  content: ''; height: 1px; flex: 1; background: rgba(147,178,219,.14);
}
.ng-page .ng-card .links { margin-top: 19px; gap: 2px; }
.ng-page .ng-card .auth-link, .ng-page .ng-card .links, .ng-page .ng-card .pksub {
  font-size: 12px; color: #a5b6ce; text-align: center; line-height: 1.65;
}
.ng-page .ng-card .auth-link { margin-top: 16px; }
.ng-page .ng-card .ng-secondary-note { margin-top: 5px; color: #97a9c3; font-size: 11px; }
.ng-page .ng-card a { color: #a7d0ff; text-decoration: none; cursor: pointer; }
.ng-page .ng-card a:hover { color: #e0efff; text-decoration: underline; }
.ng-page .ng-card .links a, .ng-page .ng-card .back-link { padding: 5px 0; }
.ng-page .ng-card .auth-msg, .ng-page .ng-card .err {
  border-radius: 10px; padding: 11px 13px; font-size: 12px; line-height: 1.55;
}
.ng-page .ng-card .auth-msg--err, .ng-page .ng-card .err {
  border: 1px solid #8c4453; background: #441e2c; color: #ffced5;
}
.ng-page .ng-card .err { margin-top: 16px; }
.ng-page [data-ng-kind="admin"] .ng-eyebrow span + span { color: #c3b2ed; }
.ng-page [data-ng-kind="register"] .ng-eyebrow span + span { color: #91d5d7; }
.ng-page :focus-visible { outline: 2px solid #a9d3ff; outline-offset: 4px; }
.ng-light-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1000; pointer-events: none; }
.ng-page .ng-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes ng-autofill { from { opacity: .999; } to { opacity: 1; } }
.ng-page input:-webkit-autofill { animation: ng-autofill .01s; }
@media (max-width: 480px) {
  body.ng-page.auth-page { padding: 20px 16px; }
  .ng-page .ng-card { padding: 23px 23px 22px; border-radius: 20px; }
  .ng-page .ng-header { margin-bottom: 24px; }
  .ng-page .ng-card h1 { font-size: 25px; }
  .ng-page .ng-beacon { height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-page *, .ng-page *::before, .ng-page *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
