/* ==========================================================================
   Anmeldung: App-Login + simulierte Microsoft-Entra-Seite
   ========================================================================== */

/* ---------- App-Login (nutzt Tokens aus app.css) ---------- */

.login-body { display: grid; place-items: center; padding: 20px; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 40px));
    background: var(--shell);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px -40px rgba(15, 39, 48, .35);
    overflow: hidden;
}

.login-panel { display: flex; flex-direction: column; padding: 44px 56px; }
.login-logo { height: 24px; width: auto; align-self: flex-start; }
.login-content { margin: auto 0; max-width: 420px; padding: 40px 0; }
.login-content h1 { margin: 18px 0 10px; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
.login-lead { margin: 0 0 32px; font-size: 16px; color: var(--ink-2); }

.login-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #e5f4ec;
    color: var(--ok);
    font-weight: 500;
}
.login-notice .ico { width: 18px; height: 18px; }
.login-notice.is-error { background: #fbeced; color: var(--danger); }

/* Microsoft-Button nach Microsoft Brand Guidelines (hell) */
.btn-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    border: 1px solid #8c8c8c;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #5e5e5e;
    font: 600 15px "Segoe UI", var(--font);
    transition: background .15s, box-shadow .15s;
}
.btn-ms:hover { background: #f6f6f6; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
.btn-ms svg { width: 21px; height: 21px; }

.login-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); }
.login-trust .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ok); }

.login-foot { margin: 0; font-size: 13px; color: var(--muted); }
.login-foot a { color: var(--brand); font-weight: 600; }

/* Rechte Seite: Markenvisual */
.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: #fff;
    background:
        radial-gradient(600px 400px at 90% 0%, rgba(103, 149, 172, .55), transparent 70%),
        radial-gradient(500px 400px at 0% 100%, rgba(243, 217, 196, .18), transparent 70%),
        linear-gradient(160deg, #0b5268 0%, var(--brand) 55%, #022a35 100%);
    overflow: hidden;
}
.lv-card {
    position: absolute;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.lv-timer { top: 64px; left: 48px; width: 330px; transform: rotate(-2deg); }
.lv-row { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.lv-state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.lv-state .pulse { animation: pulse 1.8s infinite; }
.lv-time { margin: 10px 0 14px; font-size: 52px; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.lv-week { top: 210px; right: 40px; width: 230px; transform: rotate(3deg); }
.lv-label { font-size: 12px; color: rgba(255, 255, 255, .7); }
.lv-week strong { display: block; margin: 4px 0 14px; font-size: 28px; font-weight: 600; }
.lv-bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; }
.lv-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--c); }
.lv-text { position: relative; max-width: 420px; }
.lv-text h2 { font-size: 40px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; }
.lv-text p { margin: 14px 0 0; color: rgba(255, 255, 255, .75); font-size: 15px; }

@media (max-width: 900px) {
    .login-body { padding: 0; }
    .login-shell { grid-template-columns: 1fr; border-radius: 0; min-height: 100vh; }
    .login-visual { display: none; }
    .login-panel { padding: 28px 22px; }
    .login-content h1 { font-size: 34px; }
}

/* ---------- Simulierte Microsoft-Entra-Seite ---------- */

.entra-body *, .entra-body *::before, .entra-body *::after { box-sizing: border-box; }

.entra-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    color: #1b1b1b;
    /* Firmen-Branding (in Entra konfigurierbar): Hintergrund */
    background:
        radial-gradient(900px 600px at 0% 0%, #f3d9c4 0%, transparent 60%),
        radial-gradient(900px 700px at 100% 100%, #b7cfdb 0%, transparent 60%),
        #e6edf0;
}

.entra-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 16px; }

.entra-card {
    width: 100%;
    max-width: 440px;
    padding: 44px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.entra-logo { display: block; height: 24px; width: auto; margin-bottom: 16px; }

.entra-step { display: none; }
.entra-step.is-active { display: block; animation: entra-in .25s ease-out; }
@keyframes entra-in { from { opacity: 0; transform: translateX(24px); } }

.entra-step h1 { margin: 16px 0 12px; font-size: 24px; font-weight: 600; line-height: 1.75rem; }

.entra-input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 6px 10px 6px 0;
    border: 0;
    border-bottom: 1px solid #666;
    background: transparent;
    font: inherit;
    outline: 0;
}
.entra-input:focus { border-bottom-color: #0067b8; }
.entra-input.is-invalid { border-bottom-color: #e81123; }
.entra-error { margin: 8px 0 0; color: #e81123; font-size: 14px; }

.entra-links { margin: 16px 0 0; font-size: 13px; }
.entra-links a, .entra-footer a { color: #0067b8; text-decoration: none; }
.entra-links a:hover { text-decoration: underline; color: #666; }

.entra-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 28px; }
.entra-btn {
    min-width: 108px;
    height: 32px;
    padding: 4px 12px;
    border: 1px solid #0067b8;
    background: #0067b8;
    color: #fff;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    line-height: 22px;
}
.entra-btn:hover { background: #005da6; }
.entra-btn-secondary { border-color: rgba(0, 0, 0, .2); background: rgba(0, 0, 0, .2); color: #000; }
.entra-btn-secondary:hover { background: rgba(0, 0, 0, .3); }

.entra-identity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px 2px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: #1b1b1b;
    cursor: pointer;
}
.entra-identity:hover { background: rgba(0, 0, 0, .06); }
.entra-identity svg { width: 16px; height: 16px; }
.entra-identity-static { margin: 0; font-size: 15px; }

.entra-text { display: flex; gap: 12px; margin: 0 0 8px; line-height: 1.45; }
.entra-auth-ico { width: 28px; height: 28px; flex-shrink: 0; color: #0067b8; }
.entra-number { margin: 18px 0 10px; font-size: 40px; font-weight: 600; text-align: center; letter-spacing: .02em; }
.entra-hint { margin: 0; font-size: 13px; color: #666; }

.entra-progress { position: relative; height: 3px; margin: 22px 0 6px; overflow: hidden; background: #f0f0f0; }
.entra-progress span {
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: #0067b8;
    animation: entra-progress 1.4s ease-in-out infinite;
}
@keyframes entra-progress { to { left: 100%; } }

.entra-check { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 15px; }
.entra-check input { width: 16px; height: 16px; margin: 0; }

.entra-options { display: flex; align-items: center; gap: 12px; padding: 14px 44px; cursor: default; }
.entra-options svg { width: 24px; height: 24px; color: #1b1b1b; }

.entra-footer { display: flex; justify-content: flex-end; gap: 20px; padding: 8px 20px; font-size: 12px; background: rgba(0, 0, 0, .6); }
.entra-footer a { color: #fff; }

@media (max-width: 600px) {
    .entra-body { background: #fff; }
    .entra-wrap { justify-content: flex-start; padding: 0; gap: 0; }
    .entra-card { max-width: none; padding: 24px; box-shadow: none; }
    .entra-step h1 { font-size: 22px; line-height: 1.3; }
    .entra-input { height: 40px; font-size: 16px; } /* 16px verhindert Auto-Zoom auf iOS */
    .entra-actions { margin-top: 24px; }
    .entra-btn { flex: 1; max-width: 160px; height: 40px; line-height: 30px; }
    .entra-number { font-size: 36px; }
    .entra-options { margin-top: 8px; padding: 16px 24px; border-top: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb; }
    .entra-footer { flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 16px 24px; background: #fff; }
    .entra-footer a { color: #666; }
}

@media (max-width: 360px) {
    .entra-card { padding: 20px 16px; }
    .entra-options { padding: 14px 16px; }
}
