/* ==================================================================
   Log ind-sider i det nye design: medarbejdernes login.php og
   Kundeportalens login/glemt kodeord/nyt kodeord (portal/includes/
   auth_header.php). Samme ro som resten af det nye design: varm lys
   baggrund, hvid formular med tynd kant, Geist og orange kun til det,
   man kan trykke på.

   Computer: to kolonner - en rolig præsentation til venstre og selve
   formularen til højre. Telefon: kun logo, overskrift og formularen.
   ================================================================== */
:root {
    --a-ground: #f5f4f0;
    --a-panel: #efede8;
    --a-surface: #ffffff;
    --a-ink: #1b1a17;
    --a-soft: #55524c;
    --a-muted: #6e6a63;
    --a-line: #e5e2db;
    --a-field: #c9c5bc;
    --a-brand: #c4561d;
    --a-brand-dark: #ad4b16;
    --a-brand-50: #fcebdf;
    --a-link: #9a4011;
}

body.auth-nyt {
    margin: 0;
    min-height: 100vh;
    background: var(--a-ground);
    color: var(--a-ink);
    font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* iPhone (viewport-fit=cover): hold indholdet fri af statuslinjen/
       "Dynamic Island" i toppen og hjemmelinjen i bunden. */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    box-sizing: border-box;
}

.auth-nyt a {
    color: var(--a-link);
}

.auth-nyt a:hover {
    color: #6e2d0b;
}

.auth-shell {
    min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Venstre: præsentation */
.auth-side {
    background: var(--a-panel);
    border-right: 1px solid var(--a-line);
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 16px;
}

.auth-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--a-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    flex: none;
}

.auth-logo small {
    display: block;
    font-weight: 500;
    font-size: 12.5px;
    color: var(--a-muted);
    line-height: 1.2;
}

.auth-pitch {
    margin: auto 0;
    max-width: 460px;
}

.auth-pitch h1 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -.025em;
    margin: 0 0 14px;
}

.auth-pitch p {
    color: var(--a-soft);
    font-size: 16px;
    margin: 0 0 28px;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--a-soft);
}

.auth-points strong {
    display: block;
    color: var(--a-ink);
    font-weight: 600;
}

.auth-point-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--a-surface);
    border: 1px solid var(--a-line);
    color: var(--a-brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.auth-side-foot {
    font-size: 13px;
    color: var(--a-muted);
}

/* Højre: formularen */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--a-surface);
    border: 1px solid var(--a-line);
    border-radius: 14px;
    padding: 32px;
}

.auth-card h1,
.auth-card h2 {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.02em;
    margin: 0 0 6px;
    color: var(--a-ink);
}

.auth-lead {
    color: var(--a-soft);
    margin: 0 0 24px;
}

.auth-nyt .form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--a-ink);
}

.auth-nyt .form-control {
    min-height: 44px;
    border-radius: 9px;
    border: 1px solid var(--a-field);
    font-size: 16px;
    color: var(--a-ink);
    font-family: inherit;
}

.auth-nyt .form-control:focus {
    border-color: var(--a-brand);
    box-shadow: 0 0 0 .2rem rgba(196, 86, 29, .18);
}

.auth-nyt .btn {
    min-height: 46px;
    border-radius: 9px;
    font-weight: 600;
    font-family: inherit;
    font-size: 15px;
}

.auth-nyt .btn-primary {
    background: var(--a-brand-dark);
    border-color: var(--a-brand-dark);
    color: #fff;
}

.auth-nyt .btn-primary:hover,
.auth-nyt .btn-primary:focus {
    background: #8f3d10;
    border-color: #8f3d10;
    color: #fff;
}

.auth-nyt .btn-outline-secondary {
    border-color: var(--a-field);
    color: var(--a-ink);
    background: var(--a-surface);
}

.auth-nyt .btn-outline-secondary:hover {
    background: var(--a-ground);
    color: var(--a-ink);
    border-color: var(--a-field);
}

/* "Log ind med Microsoft": hvid knap med Microsoft-logoet (som Microsofts egne). */
.auth-ms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border-radius: 9px;
    border: 1px solid var(--a-field);
    background: var(--a-surface);
    color: var(--a-ink) !important;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.auth-ms-btn:hover {
    background: var(--a-ground);
    border-color: #a9a49a;
}

.auth-ms-btn:focus-visible {
    outline: 2px solid var(--a-brand);
    outline-offset: 2px;
}

.auth-note {
    font-size: 13.5px;
    color: var(--a-muted);
    margin: 18px 0 0;
}

.auth-links {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--a-line);
    font-size: 13px;
    color: var(--a-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-links a {
    color: var(--a-muted);
}

.auth-nyt .alert {
    border-radius: 9px;
    font-size: 14px;
}

/* Telefon/tablet */
@media (max-width: 899.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .auth-side {
        border-right: 0;
        border-bottom: 0;
        background: transparent;
        padding: 28px 20px 0;
        gap: 0;
    }

    .auth-pitch,
    .auth-side-foot {
        display: none;
    }

    .auth-main {
        align-items: flex-start;
        padding: 24px 16px 40px;
    }

    .auth-card {
        padding: 24px 20px;
    }
}
