:root {
    --bg:#e9ecf2;
    --surface:#eef1f6;
    --navy:#16234f;
    --navy-soft:#33406b;
    --red:#a01823;
    --red-light:#c8232f;
    --red-dark:#7c121b;
    --text:#6b7280;
    --muted:#9aa1b0;
    --dark-shadow:#c3c9d6;
    --light-shadow:#fff;
    --font-display:"Segoe UI",Arial,sans-serif;
    --font-body:"Segoe UI",Arial,sans-serif;
}

*,
*::before,
*::after {
    box-sizing:border-box;
}

html,
body {
    margin:0;
    padding:0;
}

body {
    min-height:100vh;
    background:var(--bg);
    color:var(--navy);
    font-family:var(--font-body);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}

a {
    text-decoration:none;
}

.bg-wave {
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    background:
        radial-gradient(
            ellipse 60% 40% at 100% 55%,
            rgba(255,255,255,.58),
            transparent 60%
        ),
        radial-gradient(
            ellipse 55% 35% at 0% 90%,
            rgba(255,255,255,.52),
            transparent 60%
        );
}

.topbar {
    position:relative;
    z-index:2;
    width:100%;
    max-width:1440px;
    margin:auto;
    padding:28px clamp(20px,5vw,64px) 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.brand-logo {
    width:255px;
    height:auto;
    display:block;
    object-fit:contain;
}

.signin-group {
    display:flex;
    align-items:center;
    gap:14px;
}

.signin-text {
    color:var(--navy-soft);
    font-size:15px;
    white-space:nowrap;
}

.btn-signin {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 22px;
    border:0;
    border-radius:999px;
    background:var(--bg);
    color:var(--navy);
    font-size:14.5px;
    font-weight:700;
    box-shadow:
        6px 6px 12px var(--dark-shadow),
        -6px -6px 12px var(--light-shadow);
    transition:transform .18s ease;
}

.btn-signin svg {
    width:18px;
    height:18px;
}

.btn-signin:hover {
    transform:translateY(-1px);
}

.page {
    position:relative;
    z-index:1;
    display:flex;
    justify-content:center;
    padding:40px 20px 64px;
}

.card {
    width:100%;
    max-width:620px;
    padding:clamp(28px,5vw,56px)
            clamp(22px,6vw,60px)
            clamp(32px,5vw,48px);
    border-radius:32px;
    background:var(--bg);
    box-shadow:
        16px 16px 32px var(--dark-shadow),
        -16px -16px 32px var(--light-shadow);
}

.eyebrow {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:18px;
}

.eyebrow-line {
    width:34px;
    height:1px;
    background:var(--red);
}

.eyebrow-dot {
    width:5px;
    height:5px;
    flex:none;
    border-radius:50%;
    background:var(--red);
}

.eyebrow-text {
    color:var(--navy);
    font-size:12px;
    font-weight:800;
    letter-spacing:2.5px;
    white-space:nowrap;
}

.title {
    margin:0;
    color:var(--navy);
    text-align:center;
    font-size:clamp(28px,5vw,40px);
    line-height:1.15;
    font-weight:800;
    letter-spacing:-1.5px;
}

.title .accent {
    color:var(--red-light);
}

.divider {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:18px 0 20px;
}

.divider-line {
    width:64px;
    height:1px;
    background:var(--red);
    opacity:.5;
}

.divider-diamond {
    width:7px;
    height:7px;
    background:var(--red);
    transform:rotate(45deg);
}

.subtitle {
    max-width:440px;
    margin:0 auto 34px;
    color:var(--text);
    text-align:center;
    font-size:15px;
    line-height:1.6;
}

.form {
    display:flex;
    flex-direction:column;
    gap:20px;
}

.field label {
    display:block;
    margin-bottom:9px;
    color:var(--navy);
    font-size:14px;
    font-weight:700;
}

.input-shell {
    display:flex;
    align-items:center;
    gap:12px;
    padding:4px 18px 4px 4px;
    background:var(--bg);
    border-radius:14px;
    box-shadow:
        inset 5px 5px 10px var(--dark-shadow),
        inset -5px -5px 10px var(--light-shadow);
}

.input-icon {
    width:40px;
    height:40px;
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--red);
    border-radius:10px;
    box-shadow:
        3px 3px 6px var(--dark-shadow),
        -3px -3px 6px var(--light-shadow);
}

.input-icon svg {
    width:19px;
    height:19px;
}

.input-shell input {
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    color:var(--navy);
    font:500 15px var(--font-body);
    padding:14px 4px;
}

.input-shell input::placeholder {
    color:var(--muted);
}

.input-shell:focus-within {
    box-shadow:
        inset 5px 5px 10px var(--dark-shadow),
        inset -5px -5px 10px var(--light-shadow),
        0 0 0 3px rgba(160,24,35,.1);
}

.form-message {
    min-height:0;
    color:#b42318;
    font-size:12px;
}

.btn-continue {
    width:100%;
    margin-top:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:0;
    border-radius:14px;
    padding:17px 24px;
    cursor:pointer;
    color:#fff;
    background:linear-gradient(
        180deg,
        var(--red-light),
        var(--red-dark)
    );
    font-size:16px;
    font-weight:800;
    box-shadow:
        7px 7px 14px var(--dark-shadow),
        -7px -7px 14px var(--light-shadow);
    transition:transform .18s ease;
}

.btn-continue svg {
    width:19px;
    height:19px;
}

.btn-continue:hover {
    transform:translateY(-2px);
}

.consent {
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin:18px 2px 0;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}

.icon-shield {
    width:15px;
    height:15px;
    flex:none;
    margin-top:2px;
    color:var(--red);
}

.consent a {
    color:var(--red);
    font-weight:700;
}

@media (max-width:640px) {
    .topbar {
        padding:20px 16px 0;
    }

    .brand-logo {
        width:205px;
    }

    .signin-text {
        display:none;
    }

    .btn-signin {
        padding:10px 16px;
    }

    .page {
        padding:24px 14px 40px;
    }

    .card {
        padding:30px 18px 34px;
        border-radius:22px;
    }

    .eyebrow-text {
        font-size:10px;
        letter-spacing:1.7px;
    }

    .eyebrow-line {
        width:22px;
    }

    .subtitle {
        margin-bottom:26px;
        font-size:14px;
    }

    .form {
        gap:16px;
    }

    .input-shell {
        min-height:57px;
    }

    .input-icon {
        width:36px;
        height:36px;
    }

    .input-shell input {
        font-size:14px;
    }

    .btn-continue {
        padding:15px 20px;
        font-size:15px;
    }

    .consent {
        font-size:10.5px;
    }
}

@media (max-width:380px) {
    .brand-logo {
        width:180px;
    }

    .title {
        font-size:26px;
    }

    .card {
        padding-left:15px;
        padding-right:15px;
    }
}

/* =========================================================
   REGISTERED EMAIL ERROR
========================================================= */

.form-message {
    width: 100%;
    margin-top: 18px;
}


.registered-error-card {
    width: 100%;
    padding: 20px;
    border-radius: 18px;

    background: var(--bg);

    box-shadow:
        8px 8px 18px var(--shadow-dark),
        -8px -8px 18px var(--shadow-light);

    border: 1px solid rgba(255,255,255,0.45);

    text-align: center;

    animation: errorCardIn .28s ease-out;
}


@keyframes errorCardIn {

    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.registered-error-icon {

    width: 52px;
    height: 52px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--red);

    background: var(--bg);

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);

}


.registered-error-icon svg {

    width: 25px;
    height: 25px;

}


.registered-error-content h3 {

    margin: 0 0 7px;

    font-family: var(--font-display);

    font-size: 17px;

    font-weight: 700;

    color: var(--navy);

}


.registered-error-content p {

    margin: 0 auto;

    max-width: 390px;

    font-family: var(--font-body);

    font-size: 13px;

    line-height: 1.6;

    color: var(--text-body);

}


.registered-error-help {

    margin-top: 5px !important;

    color: var(--text-muted) !important;

}


.registered-error-actions {

    margin-top: 17px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 11px;

}


.error-signin-button {

    width: 100%;

    min-height: 43px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            var(--red-light),
            var(--red-dark)
        );

    color: #fff;

    text-decoration: none;

    font-family: var(--font-display);

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);

    transition:
        transform .18s ease,
        filter .18s ease;

}


.error-signin-button svg {

    width: 17px;
    height: 17px;

}


.error-signin-button:hover {

    filter: brightness(1.05);

    transform: translateY(-1px);

}


.forgot-password-link {

    font-family: var(--font-body);

    font-size: 12.5px;

    font-weight: 600;

    color: var(--red);

    text-decoration: none;

}


.forgot-password-link:hover {

    text-decoration: underline;

}


/* =========================================================
   GENERIC ERROR
========================================================= */

.generic-error-box {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 13px 15px;

    border-radius: 12px;

    background: var(--bg);

    color: var(--red);

    font-family: var(--font-body);

    font-size: 13px;

    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);

}


.generic-error-box svg {

    width: 18px;
    height: 18px;

    flex: none;

}


@media (max-width: 640px) {

    .registered-error-card {

        padding: 18px 15px;

        border-radius: 16px;

    }


    .registered-error-content h3 {

        font-size: 16px;

    }


    .registered-error-content p {

        font-size: 12.5px;

    }

}