/* Login / Registrierung / Passwort-Reset — mobile-first im App-Look (siehe /app/app.css).
   Register/css/style.css ist eine Kopie dieser Datei. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/app/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/app/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }

:root {
    color-scheme: dark;
    --ink: #0B0D12;
    --surface-1: #12151C;
    --surface-2: #171A22;
    --surface-3: #1E222C;
    --text: #F2F4F8;
    --text-dim: rgba(242, 244, 248, 0.64);
    --text-faint: rgba(242, 244, 248, 0.40);
    --line: rgba(236, 240, 248, 0.07);
    --line-strong: rgba(236, 240, 248, 0.14);
    --accent: #3D82F0;
    --accent-light: #6BA3FF;
    --accent-soft: rgba(61, 130, 240, 0.14);
    --accent-line: rgba(61, 130, 240, 0.4);
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--text);
    background: var(--ink) !important;
    background-image:
        radial-gradient(90% 55% at 50% -12%, rgba(26, 105, 232, 0.26), transparent 65%),
        radial-gradient(50% 35% at 100% 100%, rgba(107, 163, 255, 0.07), transparent 70%) !important;
    background-attachment: fixed !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.006em;
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: auth-in .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(12px); } }

.form-header {
    position: relative;
    text-align: center;
    padding: 0 0 28px;
    background: none !important;
}
.form-header .logo { margin: 0 auto 20px; width: 72px; height: 72px; }
.form-header .logo img {
    width: 72px !important; height: 72px; border-radius: 20px; display: block;
    background: linear-gradient(180deg, #161A24, #0A0C11);
    padding: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line-strong), 0 0 60px rgba(26, 105, 232, 0.25);
}
.form-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
    line-height: 1.15;
}
.form-header p {
    margin: 8px 0 0 !important;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dim);
}
.form-header .kai {
    position: absolute; right: -6px; top: -18px; width: 86px; height: auto; pointer-events: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
    animation: kai-float 5s ease-in-out infinite;
}
@keyframes kai-float { 50% { transform: translateY(-6px) rotate(-2deg); } }

.form-body {
    padding: 22px;
    border-radius: 24px;
    background: rgba(23, 26, 34, 0.82);
    border: 1px solid var(--line);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.form-body + .form-body { margin-top: 0; }
.form-body > p { color: var(--text-dim) !important; font-size: 14.5px !important; line-height: 1.55; margin: 0 0 18px !important; }

.input-group, .input_group {
    display: block !important;
    margin-bottom: 16px;
    text-align: left;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 550;
}

.input-wrap { position: relative; }

.input-field {
    width: 100% !important;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px !important;
    font-size: 16px; font-weight: 500;
    font-family: inherit;
    background-color: var(--surface-3);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.input-field::placeholder { color: var(--text-faint); }
.input-field:focus {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft);
    outline: none;
}
.input-field:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface-3) inset;
    caret-color: var(--text);
}
.input-wrap .input-field { padding-right: 52px; }

.pw-toggle {
    position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px;
    display: grid; place-items: center; background: transparent; color: var(--text-faint); cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn-submit {
    width: 100%;
    height: 52px;
    margin: 6px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    background: linear-gradient(180deg, #4C8EF7 0%, #1A69E8 100%);
    box-shadow: 0 10px 28px rgba(26, 105, 232, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px; font-weight: 650;
    font-family: inherit;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit[disabled] { opacity: .7; }

.form-links { display: flex; justify-content: center; margin-top: 18px; }
.form-links a, .forgot-password, .form-container a {
    color: var(--accent-light) !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 550;
    padding: 10px 12px;
    border-radius: 10px;
}
.form-links a:hover, .form-container a:hover { background: rgba(61, 130, 240, 0.08); }

.form-container > div[style*="text-align: center"] { margin: 18px 0 0 !important; }

.auth-foot {
    margin-top: 28px;
    display: flex; gap: 16px; justify-content: center;
    font-size: 12.5px; color: var(--text-faint);
}
.auth-foot a { color: var(--text-faint) !important; text-decoration: none; }

.invisible { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Meldungs-Modal (Bootstrap) im selben Look */
.modal-content { background: var(--surface-1) !important; border: 1px solid var(--line-strong) !important; border-radius: 22px !important; color: var(--text); }
.modal-header, .modal-footer { border-color: var(--line) !important; }
.modal .btn-primary { background: linear-gradient(180deg, #4C8EF7, #1A69E8); border: 0; border-radius: 12px; padding: 10px 20px; font-weight: 600; }

@media (max-width: 420px) {
    .form-header h2 { font-size: 27px; }
    .form-header .kai { width: 72px; right: -4px; }
    .form-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .form-container, .form-header .kai { animation: none; }
}
