/* =========================================
   KERNIQ TOEGANG PAGINA
   Moderne split-login + mobile auth layout
   ========================================= */

body.toegang-page {
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
}

/* Navbar/footer weg op toegangspagina */
body.toegang-page .navbar,
body.toegang-page .site-footer {
    display: none !important;
}

/* =========================================
   DESKTOP LAYOUT
   ========================================= */

.toegang-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    background: #ffffff;
}

/* =========================================
   LINKER BRANDINGVLAK
   ========================================= */

/* =========================================
   LINKER BRANDINGVLAK - LICHTE KERNIQ STIJL
   ========================================= */

.toegang-auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px clamp(48px, 6vw, 104px);
    color: #111827;
    background:
        radial-gradient(circle at 8% 14%, rgba(255, 92, 60, 0.11), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(255, 122, 60, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #faf7f4 48%, #f5f5f5 100%);
    border-right: 1px solid rgba(17, 24, 39, 0.06);
}

.toegang-auth-visual::before {
    content: "";
    position: absolute;
    left: -250px;
    top: 18%;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    border: 18px solid rgba(255, 92, 60, 0.22);
    border-right-color: transparent;
    border-bottom-color: rgba(255, 122, 60, 0.10);
    transform: rotate(24deg);
    opacity: 0.9;
}

.toegang-auth-visual::after {
    content: "";
    position: absolute;
    right: -260px;
    bottom: -270px;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 92, 60, 0.15) 0%,
            rgba(255, 122, 60, 0.08) 42%,
            transparent 72%
        );
    filter: blur(18px);
    opacity: 0.95;
}

.toegang-visual-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
    transform: translateY(6px);
}

.toegang-visual-content::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -94px;
    width: 140px;
    height: 140px;
    background-image:
        radial-gradient(circle, rgba(255, 92, 60, 0.34) 1.4px, transparent 1.8px);
    background-size: 18px 18px;
    opacity: 0.34;
    pointer-events: none;
}

.toegang-visual-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -34px;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a3c, #ff5c3c);
    box-shadow: 0 0 24px rgba(255, 92, 60, 0.22);
}

.toegang-visual-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin-bottom: 52px;
    filter: drop-shadow(0 14px 26px rgba(17, 24, 39, 0.08));
}

.toegang-visual-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    color: #ff5c3c;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.toegang-visual-content h1 {
    max-width: 600px;
    margin: 0 0 24px;
    color: #111827;
    font-size: clamp(44px, 4.3vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    font-weight: 700;
}

.toegang-visual-content p {
    max-width: 650px;
    margin: 0;
    color: #4b5563;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.62;
}

/* Decoratieve vormen links */

.toegang-visual-shape,
.toegang-visual-line {
    position: absolute;
    pointer-events: none;
}

.toegang-visual-shape.shape-one {
    z-index: 2;
    top: 12%;
    right: 18%;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a3c, #ff5c3c);
    box-shadow:
        0 0 0 22px rgba(255, 92, 60, 0.10),
        0 18px 44px rgba(255, 92, 60, 0.18);
}

.toegang-visual-shape.shape-two {
    z-index: 2;
    top: 10.5%;
    right: 8%;
    width: 104px;
    height: 62px;
    border-radius: 38px 0 0 38px;
    background: linear-gradient(135deg, #ff8b4a, #ff5c3c);
    opacity: 0.82;
}

.toegang-visual-line {
    z-index: 1;
    left: -180px;
    bottom: -130px;
    width: 760px;
    height: 310px;
    border: 6px solid transparent;
    border-top-color: rgba(255, 92, 60, 0.42);
    border-left-color: rgba(255, 122, 60, 0.34);
    border-radius: 54%;
    transform: rotate(-8deg);
    opacity: 0.9;
}

/* =========================================
   RECHTER LOGINPANEEL
   ========================================= */

.toegang-auth-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px clamp(40px, 5vw, 84px);
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 122, 60, 0.045), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fafafa 100%);
}

.toegang-powered {
    position: absolute;
    right: 34px;
    top: 28px;
    z-index: 8;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.toegang-powered strong {
    color: #6b7280;
    font-weight: 800;
}

.toegang-mobile-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.toegang-card {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Logo boven Inloggen */

.toegang-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 84px;
    margin: 0 auto 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.toegang-icon span {
    display: none;
}

.toegang-icon::before {
    content: "";
    display: block;
    width: 190px;
    height: 72px;
    background: #ff5c3c;
    -webkit-mask: url("/assets/kerniq_logo_000000.png") center / contain no-repeat;
    mask: url("/assets/kerniq_logo_000000.png") center / contain no-repeat;
    filter: drop-shadow(0 16px 30px rgba(255, 92, 60, 0.16));
}

.toegang-head {
    text-align: center;
}

.toegang-head h1 {
    margin: 0 0 14px;
    color: #222222;
    font-size: clamp(31px, 2.35vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.toegang-head p {
    max-width: 460px;
    margin: 0 auto 40px;
    color: #596579;
    font-size: 16px;
    line-height: 1.58;
}

/* =========================================
   ALERTS
   ========================================= */

.toegang-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.toegang-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toegang-alert.info {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* =========================================
   FORM
   ========================================= */

.resend-box {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.resend-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.toegang-email-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 12px;
    align-items: stretch;
}

.toegang-input-group {
    position: relative;
    display: block;
    width: 100%;
}

.toegang-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 66px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 23px;
    font-weight: 900;
    border-right: 1px solid #e3e7ee;
}

.toegang-input-group input {
    width: 100%;
    height: 64px;
    padding: 0 20px 0 86px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.toegang-input-group input::placeholder {
    color: #bcc3cf;
}

.toegang-input-group input:focus {
    border-color: #ff5c3c;
    box-shadow: 0 0 0 4px rgba(255, 92, 60, 0.12);
    background: #ffffff;
}

.toegang-button,
.resend-form button.toegang-button {
    width: 100%;
    height: 64px;
    margin-top: 0;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a3c 0%, #ff5c3c 58%, #ff4b2e 100%);
    box-shadow:
        0 22px 42px rgba(255, 92, 60, 0.24),
        0 10px 22px rgba(255, 92, 60, 0.13);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.toegang-button:hover,
.resend-form button.toegang-button:hover {
    transform: none;
    box-shadow:
        0 26px 50px rgba(255, 92, 60, 0.30),
        0 12px 26px rgba(255, 92, 60, 0.16);
    filter: saturate(1.05);
}

.toegang-help-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    margin-left: auto;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.toegang-help-link:hover {
    color: #ff5c3c;
    transform: translateX(3px);
}

/* =========================================
   EMAIL INFO POPUP
   ========================================= */

.toegang-email-info {
    position: relative;
}

.toegang-email-info summary {
    width: 46px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #d9dee7;
    background: #ffffff;
    color: #ff5c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.toegang-email-info summary::-webkit-details-marker {
    display: none;
}

.toegang-email-info summary:hover,
.toegang-email-info[open] summary {
    border-color: #ff5c3c;
}

.toegang-email-info-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 20;
    width: min(360px, calc(100vw - 48px));
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.10);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.toegang-email-info-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 16px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(17, 24, 39, 0.10);
    border-top: 1px solid rgba(17, 24, 39, 0.10);
    transform: rotate(45deg);
}

.toegang-email-info-popover strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.toegang-email-info-popover p{
    margin: 0;
    color: #5b6472;
    font-size: 13px;
    line-height: 1.65;
    
}

.toegang-email-info-popover p + p{
    margin-top: 10px;
}

/* =========================================
   HONEYPOT
   ========================================= */

.resend-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   MOBILE DECORATIE
   ========================================= */

.toegang-mobile-blob {
    display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (min-width: 901px) {
    .toegang-help-link + .announcement-banner-stack {
        margin-top: 26px;
    }
}

@media (max-width: 900px) {
    body.toegang-page {
        background: #ffffff;
    }

    .toegang-auth {
        min-height: 100vh;
        display: block;
        background: #ffffff;
    }

    .toegang-auth-visual {
        display: none;
    }

    .toegang-auth-panel {
        min-height: 100vh;
        width: 100%;
        padding: 0;
        display: block;
        background: #ffffff;
    }

    .toegang-powered {
        display: block;
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 20;
        color: #9ca3af;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }

    .toegang-mobile-frame {
        position: relative;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        padding: 86px 26px 46px;
        overflow: hidden;
        border-radius: 0;
        background: #ffffff;
        border: 0;
        box-shadow: none;
    }

    .toegang-mobile-frame::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 50%;
        z-index: 6;
        width: 74px;
        height: 6px;
        border-radius: 999px;
        background: rgba(17, 24, 39, 0.14);
        transform: translateX(-50%);
    }

    .toegang-mobile-blob {
        display: block;
        position: absolute;
        z-index: 1;
        pointer-events: none;
    }

    .toegang-mobile-blob-top {
        top: -72px;
        right: -82px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background:
            radial-gradient(circle at 34% 36%, rgba(255, 255, 255, 0.50), transparent 0 20%),
            linear-gradient(135deg, #ff9a54, #ff5c3c);
        box-shadow: 0 22px 60px rgba(255, 92, 60, 0.20);
    }

    .toegang-mobile-blob-top::after {
        content: "";
        position: absolute;
        inset: 22px;
        border-radius: 50%;
        border: 13px solid rgba(255, 255, 255, 0.48);
        border-left-color: transparent;
        border-bottom-color: transparent;
        transform: rotate(16deg);
    }

    .toegang-mobile-blob-bottom {
        left: 0;
        right: 0;
        bottom: 0;
        height: 160px;
        border-radius: 0;
        background:
            radial-gradient(circle at 12% 100%, rgba(255, 122, 60, 0.88), transparent 36%),
            linear-gradient(135deg, #ff7a3c, #ff5c3c);
    }

    .toegang-mobile-blob-bottom::before {
        content: "";
        position: absolute;
        left: -20%;
        right: -20%;
        top: -56px;
        height: 90px;
        border-radius: 50%;
        background: rgba(255, 92, 60, 0.20);
        transform: rotate(6deg);
    }

    .toegang-mobile-blob-bottom::after {
        content: "";
        position: absolute;
        left: -12%;
        right: -12%;
        top: -25px;
        height: 70px;
        border-radius: 50%;
        background: #ffffff;
        opacity: 0.94;
        transform: rotate(-4deg);
    }

    .toegang-card {
        position: relative;
        z-index: 4;
        min-height: calc(100vh - 132px);
        max-width: 390px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .toegang-icon {
        display: flex;
        width: 220px;
        height: 92px;
        margin-bottom: 24px;
    }

    .toegang-icon::before {
        width: 220px;
        height: 84px;
    }

    .toegang-head h1 {
        margin-bottom: 14px;
        font-size: 31px;
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .toegang-head p {
        max-width: 300px;
        margin: 0 auto 42px;
        color: #828b99;
        font-size: 14px;
        line-height: 1.6;
    }

    .toegang-alert {
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .resend-form {
        gap: 18px;
    }

    .toegang-email-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 10px;
    }

    .toegang-input-icon {
        width: 58px;
        height: 58px;
        font-size: 20px;
    }

    .toegang-input-group input {
        height: 58px;
        padding-left: 78px;
        padding-right: 16px;
        border-radius: 6px;
        font-size: 15px;
    }

    .toegang-email-info summary {
        width: 44px;
        height: 58px;
        border-radius: 6px;
        font-size: 17px;
    }

    .toegang-email-info-popover {
        right: 0;
        width: min(320px, calc(100vw - 48px));
    }

    .toegang-button,
    .resend-form button.toegang-button {
        height: 58px;
        border-radius: 6px;
        font-size: 14px;
        box-shadow:
            0 22px 42px rgba(255, 92, 60, 0.22),
            0 80px 70px rgba(255, 92, 60, 0.10);
    }

    .toegang-help-link {
        position: relative;
        z-index: 5;
        align-self: flex-end;
        margin-top: 8px;
        margin-left: auto;
        padding-top: 28px;
        padding-bottom: 42px;
        color: #111827;
        font-size: 15px;
    }

    .toegang-help-link:hover {
        color: #111827;
        transform: none;
    }
}

@media (max-width: 420px) {
    .toegang-mobile-frame {
        padding: 80px 24px 42px;
    }

    .toegang-card {
        max-width: none;
    }

    .toegang-powered {
        bottom: 14px;
    }

    .toegang-icon {
        width: 210px;
        height: 88px;
        margin-bottom: 22px;
    }

    .toegang-icon::before {
        width: 210px;
        height: 80px;
    }

    .toegang-head p {
        margin-bottom: 38px;
    }

    .toegang-email-row {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .toegang-email-info summary {
        width: 42px;
    }

    .toegang-email-info-popover {
        right: -2px;
        width: calc(100vw - 48px);
    }

    .toegang-mobile-blob-top {
        top: -84px;
        right: -96px;
    }
}

@media (max-width: 360px) {
    .toegang-mobile-frame {
        padding-left: 18px;
        padding-right: 18px;
    }

    .toegang-icon {
        width: 190px;
        height: 80px;
    }

    .toegang-icon::before {
        width: 190px;
        height: 72px;
    }

    .toegang-head h1 {
        font-size: 28px;
    }

    .toegang-head p {
        font-size: 13px;
    }
}

.toegang-privacy-note {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.5;
}

.toegang-privacy-note a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
