/* Theme finapu-analyst: Nachbau der Anmeldeseite von FinAPU Analyst Financials (K5.491, server.js LOGIN).
   Werte von dort übernommen: Hintergrund #EBECEF, Formular 320px + 32px Innenabstand, Radius 8, Schatten,
   h1 18px #262B3A, Tool-Name #FF4F7B 600 15px, graue Zeilen #666 13px, Label 13px, Felder 1px #ccc Radius 4,
   Button #E6007E volle Breite, Fehler #c00 13px. Kein eigener Fokus-/Hover-Effekt (wie dort).
   Alles darüber hinaus (E-Mail-Code, Hinweise) in denselben Farben und Größen. */
:root {
    --fin-bg: #ebecef;
    --fin-text: #262b3a;
    --fin-muted: #666666;
    --fin-line: #cccccc;
    --fin-button: #e6007e;
    --fin-tool: #ff4f7b;
    --fin-error: #cc0000;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fin-bg);
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
}

.fin-card {
    width: 384px; /* 320px Inhalt + 2 x 32px */
    max-width: calc(100% - 32px);
    margin: 16px 0;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fin-logo { display: block; margin: 0 0 12px; border-radius: 2px; }

.fin-product {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fin-text);
}

p { color: var(--fin-muted); font-size: 13px; margin: 0 0 18px; }

p.fin-tool { color: var(--fin-tool); font-weight: 600; font-size: 15px; }

/* Seitentitel: wie die graue Zeile unter "Financials" */
.fin-title {
    margin: 0 0 18px;
    color: var(--fin-muted);
    font-size: 13px;
    font-weight: 400;
}

form { margin: 0; }

label { display: block; font-size: 13px; margin: 10px 0 4px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--fin-line);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

input:disabled,
input[readonly] { background: #f4f4f6; color: var(--fin-muted); }

input[aria-invalid="true"] { border-color: var(--fin-error); }

label.fin-check,
.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    cursor: pointer;
}

button,
input[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px;
    border: 0;
    border-radius: 4px;
    background: var(--fin-button);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

button:disabled { opacity: 0.7; cursor: default; }

/* "Abbrechen" u. ä. */
button.fin-button-secondary,
button[name="cancel-aia"] {
    margin-top: 8px;
    background: #fff;
    color: var(--fin-text);
    border: 1px solid var(--fin-line);
}

.fin-error { color: var(--fin-error); font-size: 13px; margin-top: 10px; }

.fin-alert {
    margin: 0 0 14px;
    padding: 9px;
    border-radius: 4px;
    font-size: 13px;
}
.fin-alert-error   { background: #fbeaea; color: var(--fin-error); }
.fin-alert-warning { background: #fdf5e2; color: #8a6100; }
.fin-alert-success { background: #e8f5ec; color: #1e7b3c; }
.fin-alert-info    { background: #f4f4f6; color: var(--fin-text); }

a { color: var(--fin-button); }

.fin-links,
#kc-form-options { margin-top: 12px; font-size: 13px; }

.fin-info { margin-top: 12px; font-size: 13px; }

.required { color: var(--fin-error); }

/* ---- E-Mail-Code ---- */
.fin-hint { margin: 0 0 8px; font-size: 13px; color: var(--fin-muted); }

input.fin-code {
    text-align: center;
    font-size: 20px;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

input.fin-code::placeholder { font-size: 14px; letter-spacing: normal; }

button.fin-link-button {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--fin-button);
    font-size: 13px;
    text-decoration: underline;
}

