/* Auth flow – hell, konsistent mit Home/Engine */

@import url('tokens.css');

.page-auth {
    background: var(--lf-bg);
    color: var(--lf-ink);
    font-family: var(--lf-font);
}

.page-auth .header {
    background: rgba(250, 250, 248, 0.9);
    border-bottom: 1px solid var(--lf-line);
}

.page-auth nav a {
    color: var(--lf-muted);
}

.page-auth nav a:hover {
    color: var(--lf-ink);
    background: var(--lf-accent-soft);
}

.page-auth .btn-nav-cta {
    background: var(--lf-accent) !important;
    color: var(--lf-accent-ink) !important;
    font-weight: 700;
}

.page-auth .footer {
    border-top: 1px solid var(--lf-line);
    color: var(--lf-subtle);
}

.page-auth .footer a { color: var(--lf-muted); }
.page-auth .footer a:hover { color: var(--lf-accent); }
.page-auth .menu-toggle { color: var(--lf-ink); }

/* Honeypot: für Screenreader/Bots im DOM, optisch weg */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-auth nav {
        background: var(--lf-bg-elev);
        border-bottom-color: var(--lf-line);
    }
}

.auth-wrap {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 72px;
}

.auth-box {
    background: var(--lf-bg-elev);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius);
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--lf-shadow);
}

.auth-box h1,
.auth-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lf-ink);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.auth-sub {
    font-size: 0.92rem;
    color: var(--lf-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.auth-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--lf-muted);
    letter-spacing: 0.02em;
    margin: 14px 0 6px;
}

.auth-box label:first-of-type { margin-top: 0; }

.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="text"] {
    width: 100%;
    display: block;
    background: var(--lf-bg);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-sm);
    padding: 11px 14px;
    font-size: 0.95rem;
    color: var(--lf-ink);
    outline: none;
    margin-bottom: 0;
    transition: border-color 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-box input:focus {
    border-color: var(--lf-accent);
    box-shadow: 0 0 0 3px var(--lf-accent-soft);
}

.auth-box input::placeholder { color: var(--lf-subtle); }

.page-auth .btn-primary,
.auth-box .btn-primary,
.page-auth .ob-card .btn-primary {
    background: var(--lf-accent);
    color: var(--lf-accent-ink);
    box-shadow: var(--lf-shadow-btn);
    border: none;
    border-radius: var(--lf-radius-sm);
    font-family: var(--lf-font);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.page-auth .btn-primary:hover,
.auth-box .btn-primary:hover,
.page-auth .ob-card .btn-primary:hover {
    background: var(--lf-accent-hover);
    transform: none;
    box-shadow: var(--lf-shadow-btn);
}

.auth-box .btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    font-size: 0.95rem;
}

.auth-error {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--lf-radius-sm);
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--lf-danger);
    margin-bottom: 18px;
    line-height: 1.45;
}

.auth-error a { color: var(--lf-accent); }

.auth-hint {
    font-size: 0.88rem;
    color: var(--lf-muted);
    margin-top: 18px;
    text-align: center;
    line-height: 1.55;
}

.auth-hint a {
    color: var(--lf-accent);
    text-decoration: none;
    font-weight: 650;
}

.auth-hint a:hover { text-decoration: underline; }

/* Steps */
.auth-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 0;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.auth-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--lf-line);
    color: var(--lf-subtle);
    background: var(--lf-bg);
}

.auth-step-dot.active {
    background: var(--lf-accent);
    border-color: var(--lf-accent);
    color: #fff;
}

.auth-step-dot.done {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
    color: var(--lf-success);
}

.auth-step-dot.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.35);
    color: var(--lf-danger);
}

.auth-step-label {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--lf-subtle);
}

.auth-step-label.active { color: var(--lf-ink); }
.auth-step-label.done { color: var(--lf-success); }
.auth-step-label.error { color: var(--lf-danger); }

.auth-step-divider {
    flex: 1;
    height: 1px;
    background: var(--lf-line);
    margin: 0 8px;
    max-width: 28px;
}

.auth-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lf-subtle);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--lf-line);
    margin: 22px 0 18px;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    margin-top: 14px;
}

.auth-field-col { display: flex; flex-direction: column; }
.auth-field-col label { margin-top: 0; }

.auth-impressum-hint {
    font-size: 0.82rem;
    color: var(--lf-muted);
    line-height: 1.5;
    margin: 0 0 8px;
    padding: 10px 12px;
    background: var(--lf-accent-soft);
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 8px;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 14px;
    background: var(--lf-bg);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-sm);
}

.auth-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--lf-accent);
    cursor: pointer;
}

.auth-consent-text {
    font-size: 0.85rem;
    color: var(--lf-muted);
    line-height: 1.55;
}

.auth-consent-text a {
    color: var(--lf-accent);
    text-decoration: none;
    font-weight: 650;
}

.auth-consent-text a:hover { text-decoration: underline; }

.auth-mail-icon,
.auth-error-icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.auth-mail-icon {
    background: var(--lf-accent-soft);
    color: var(--lf-accent);
}

.auth-error-icon {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.auth-mail-highlight {
    background: var(--lf-bg);
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-sm);
    padding: 12px 14px;
    margin: 16px 0;
    font-family: var(--lf-mono);
    font-size: 0.85rem;
    color: var(--lf-accent);
    text-align: center;
    word-break: break-all;
}

.auth-checklist {
    margin: 18px 0 8px;
    padding: 0;
    list-style: none;
}

.auth-checklist li {
    font-size: 0.9rem;
    color: var(--lf-muted);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.auth-checklist li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--lf-accent);
    font-weight: 700;
}

.auth-status {
    padding: 12px 14px;
    border-radius: var(--lf-radius-sm);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.auth-status.success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: var(--lf-success);
}

.auth-status.info {
    background: var(--lf-accent-soft);
    border: 1px solid rgba(15, 118, 110, 0.25);
    color: var(--lf-accent);
}

.auth-status.warn {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #b45309;
}

.auth-status a { color: inherit; font-weight: 700; }

@media (max-width: 520px) {
    .auth-box { padding: 28px 20px; }
    .auth-step-label { display: none; }
    .auth-field-row { grid-template-columns: 100px 1fr; }
}
