/* EXC-EXCPORT-805 round 16 (Fons 2026-11-14: a modern login with the App Store line; Raymond: "fully reinvent it,
   modern and premium"). The login, Wachtwoord vergeten, Wachtwoord herstellen and 2FA screens
   (components/auth/frame.blade.php), all scoped to .ex-auth, so the other pages on layout_auth (public intake, public
   invoice) are not touched.

   One idea carries the screen: the red stroke from the Excellus logo (same angle, same taper) drawn large across a deep
   ink panel, under the App Store line in big white type. Everything else is quiet: white form side, ink text, one red
   action. The stroke draws itself once on load; with reduced motion it is simply there. */

#kt_body .ex-auth {
    --ex-auth-ink: #13203a;
    --ex-auth-ink-deep: #0e1830;
    --ex-auth-red: #fc0001;
    --ex-auth-red-hover: #e00001;
    --ex-auth-red-press: #c40001;
    --ex-auth-text: #13203a;
    --ex-auth-muted: #5b6478;
    --ex-auth-paper: #ffffff;
    --ex-auth-field: #ffffff;
    --ex-auth-field-border: #d9dee8;
    --ex-auth-field-hover: #b9c1d1;
    --ex-auth-soft: #f3f5f9;
    --ex-auth-line: #e6e9f0;
    --ex-auth-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    min-height: 100vh;
    background-color: var(--ex-auth-paper);
    color: var(--ex-auth-text);
    font-family: Inter, Helvetica, Arial, sans-serif;
}

/* ---- Brand panel ---- */
#kt_body .ex-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 3.25rem 4rem 4rem;
    overflow: hidden;
    background-color: var(--ex-auth-ink);
    background-image: linear-gradient(160deg, var(--ex-auth-ink) 0%, var(--ex-auth-ink-deep) 100%);
    color: #ffffff;
    isolation: isolate;
}
/* The wedge sits in the pitch block, so it always crosses the slogan whatever the screen size: its centre line meets
   the block at about 52% across and 45% down (the polygon's centre line runs from (2,0) to (389,690); at 1600px tall
   that is 0.6 of the way at 960px down and 543px across). The panel clips the rest. */
#kt_body .ex-auth-wedge {
    position: absolute;
    z-index: 0;
    top: calc(45% - 960px);
    left: calc(52% - 543px);
    height: 1600px;
    width: auto;
    pointer-events: none;
    animation: ex-auth-draw 1.1s cubic-bezier(.2, .7, .2, 1) .1s both;
}
@keyframes ex-auth-draw {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}
#kt_body .ex-auth-logo {
    display: block;
    align-self: flex-start;
    width: auto;
    height: 40px;
}
#kt_body .ex-auth-pitch {
    position: relative;
    max-width: 44rem;
}
#kt_body .ex-auth-pitch > p {
    position: relative;
    z-index: 1;
}
#kt_body .ex-auth-slogan {
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-size: clamp(44px, 5.2vw, 96px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
    font-feature-settings: "ss01", "cv11";
}
#kt_body .ex-auth-slogan span {
    display: block;
    white-space: nowrap;
}
#kt_body .ex-auth-welcome {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.005em;
}

/* ---- Form side ---- */
#kt_body .ex-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background-color: var(--ex-auth-paper);
}
#kt_body .ex-auth-card {
    width: 100%;
    max-width: 400px;
}
#kt_body .ex-auth-title {
    margin: 0 0 .5rem;
    color: var(--ex-auth-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
}
/* A screen without a subtitle (Wachtwoord herstellen) still gets the same room under the title. */
#kt_body .ex-auth-title + .alert,
#kt_body .ex-auth-title + form {
    margin-top: 1.75rem;
}
#kt_body .ex-auth-subtitle {
    margin: 0 0 2.25rem;
    color: var(--ex-auth-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Messages */
#kt_body .ex-auth .alert {
    margin-bottom: 1.5rem;
    padding: .85rem 1rem;
    border: 0;
    border-radius: var(--ex-auth-radius);
    font-size: 14px;
    line-height: 1.45;
}
#kt_body .ex-auth .alert-danger {
    background-color: #fdecec;
    color: #9b1c1c;
}
#kt_body .ex-auth .alert-success {
    background-color: #e9f7ef;
    color: #146c43;
}
#kt_body .ex-auth .alert ul {
    margin: .35rem 0 0;
    padding-left: 1.1rem;
}

/* Fields */
#kt_body .ex-auth .form-label {
    display: block;
    margin-bottom: .45rem;
    color: var(--ex-auth-text);
    font-size: 14px;
    font-weight: 600;
}
#kt_body .ex-auth .ex-auth-field + .ex-auth-field {
    margin-top: 1.35rem;
}
#kt_body .ex-auth .form-control {
    height: 50px;
    padding: 0 1rem;
    border: 1px solid var(--ex-auth-field-border);
    border-radius: var(--ex-auth-radius);
    background-color: var(--ex-auth-field);
    color: var(--ex-auth-text);
    font-size: 16px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#kt_body .ex-auth .form-control:hover {
    border-color: var(--ex-auth-field-hover);
}
#kt_body .ex-auth .form-control:focus {
    border-color: var(--ex-auth-ink);
    box-shadow: 0 0 0 4px rgba(19, 32, 58, .10);
    outline: 0;
}
#kt_body .ex-auth .form-control[readonly] {
    background-color: var(--ex-auth-soft);
    color: var(--ex-auth-muted);
}
#kt_body .ex-auth .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px var(--ex-auth-field) inset;
    -webkit-text-fill-color: var(--ex-auth-text);
}

/* Password field with the show and hide button inside it */
#kt_body .ex-auth-password {
    position: relative;
}
#kt_body .ex-auth-password .form-control {
    padding-right: 3.25rem;
}
#kt_body .ex-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: .4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ex-auth-muted);
    transform: translateY(-50%);
}
#kt_body .ex-auth-password-toggle:hover {
    background-color: var(--ex-auth-soft);
    color: var(--ex-auth-text);
}
#kt_body .ex-auth-password-toggle:focus-visible {
    outline: 2px solid var(--ex-auth-ink);
    outline-offset: 1px;
}
#kt_body .ex-auth-password-toggle i {
    font-size: 20px;
}

/* Remember me and the forgot link */
#kt_body .ex-auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 1.25rem 0 2rem;
}
#kt_body .ex-auth-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 0;
    margin: 0;
    padding: 0;
}
#kt_body .ex-auth-check .form-check-input {
    float: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid var(--ex-auth-field-hover);
    border-radius: 6px;
    background-color: var(--ex-auth-field);
    cursor: pointer;
}
#kt_body .ex-auth-check .form-check-input:checked {
    border-color: var(--ex-auth-ink);
    background-color: var(--ex-auth-ink);
}
#kt_body .ex-auth-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(19, 32, 58, .10);
}
#kt_body .ex-auth-check .form-check-label {
    color: var(--ex-auth-text);
    font-size: 14px;
    cursor: pointer;
}
#kt_body .ex-auth-link {
    color: var(--ex-auth-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(19, 32, 58, .25);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease;
}
#kt_body .ex-auth-link:hover,
#kt_body .ex-auth-link:focus-visible {
    color: var(--ex-auth-text);
    text-decoration-color: var(--ex-auth-red);
}

/* The one action */
#kt_body .ex-auth .ex-auth-submit {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: var(--ex-auth-radius);
    background-color: var(--ex-auth-red);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
    transition: background-color .15s ease, transform .1s ease;
}
#kt_body .ex-auth .ex-auth-submit:hover {
    background-color: var(--ex-auth-red-hover);
    color: #ffffff;
}
#kt_body .ex-auth .ex-auth-submit:active {
    background-color: var(--ex-auth-red-press);
    transform: translateY(1px);
}
#kt_body .ex-auth .ex-auth-submit:focus-visible {
    outline: 3px solid rgba(252, 0, 1, .35);
    outline-offset: 2px;
    color: #ffffff;
}

#kt_body .ex-auth-alt {
    margin-top: 1.5rem;
    color: var(--ex-auth-muted);
    font-size: 14px;
    text-align: center;
}

/* Language menu */
#kt_body .ex-auth-footer {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ex-auth-line);
}
#kt_body .ex-auth-footer .me-10 {
    margin-right: 0 !important;
}
#kt_body .ex-auth-footer .btn-link {
    padding: 0;
    color: var(--ex-auth-muted);
    font-size: 14px;
}
#kt_body .ex-auth-footer .btn-link:hover {
    color: var(--ex-auth-text);
}

/* ---- Below 992px: the panel becomes a band above the form ---- */
@media (max-width: 991.98px) {
    #kt_body .ex-auth {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }
    #kt_body .ex-auth-brand {
        min-height: 0;
        gap: 2.5rem;
        padding: 1.75rem 1.75rem 2.25rem;
    }
    #kt_body .ex-auth-logo {
        height: 30px;
    }
    #kt_body .ex-auth-slogan {
        margin-bottom: .75rem;
        font-size: clamp(32px, 8vw, 48px);
    }
    #kt_body .ex-auth-welcome {
        font-size: 15px;
    }
    #kt_body .ex-auth-main {
        align-items: flex-start;
        padding: 2.5rem 1.75rem 3rem;
    }
    #kt_body .ex-auth-footer {
        margin-top: 2.25rem;
    }
}
@media (max-width: 575.98px) {
    #kt_body .ex-auth-brand {
        gap: 2rem;
        padding: 1.5rem 1.25rem 1.75rem;
    }
    #kt_body .ex-auth-title {
        font-size: 28px;
    }
    #kt_body .ex-auth-subtitle {
        margin-bottom: 1.75rem;
    }
    #kt_body .ex-auth-main {
        padding: 2rem 1.25rem 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #kt_body .ex-auth-wedge {
        animation: none;
    }
    #kt_body .ex-auth .ex-auth-submit,
    #kt_body .ex-auth .form-control {
        transition: none;
    }
}

/* Dark mode (the theme the portal stored in the browser): the form side turns ink, the panel stays as it is. */
[data-bs-theme="dark"] #kt_body .ex-auth {
    --ex-auth-text: #eef1f7;
    --ex-auth-muted: #9aa3b8;
    --ex-auth-paper: #0b1326;
    --ex-auth-field: #121d35;
    --ex-auth-field-border: #26324d;
    --ex-auth-field-hover: #3a4868;
    --ex-auth-soft: #18233d;
    --ex-auth-line: #1f2a44;
}
[data-bs-theme="dark"] #kt_body .ex-auth .form-control:focus {
    border-color: #8fa1c7;
    box-shadow: 0 0 0 4px rgba(143, 161, 199, .18);
}
[data-bs-theme="dark"] #kt_body .ex-auth-check .form-check-input:checked {
    border-color: #4a5f95;
    background-color: #4a5f95;
}
[data-bs-theme="dark"] #kt_body .ex-auth-link {
    text-decoration-color: rgba(238, 241, 247, .3);
}
[data-bs-theme="dark"] #kt_body .ex-auth .alert-danger {
    background-color: rgba(252, 0, 1, .12);
    color: #ffb4b4;
}
[data-bs-theme="dark"] #kt_body .ex-auth .alert-success {
    background-color: rgba(20, 108, 67, .2);
    color: #9be3bd;
}
