:root {
    --auth-navy: #092e62;
    --auth-blue: #0759a6;
    --auth-red: #c7223b;
    --auth-ink: #15263d;
    --auth-muted: #637489;
    --auth-line: #dce4ed;
}

body.giims-auth {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    display: grid;
    place-items: center;
    background-color: #edf1f4;
    background-image: repeating-linear-gradient(0deg, transparent 0 31px, #12375a08 32px), repeating-linear-gradient(90deg, transparent 0 31px, #12375a08 32px);
    color: var(--auth-ink);
    font-family: "Public Sans", system-ui, sans-serif;
}

.auth-page {
    width: min(1280px, 100%);
    min-height: min(760px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(440px, 1.08fr);
    overflow: hidden;
    border: 1px solid #d5dfe8;
    background: #fff;
    box-shadow: 0 24px 64px #102d4b18;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 46px 30px;
    border-right: 4px solid var(--auth-red);
    background-color: var(--auth-navy);
    background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px);
    background-size: 34px 34px;
    color: #fff;
}

.auth-brand-top,
.auth-brand-copy,
.auth-brand-footer {
    position: relative;
    z-index: 1;
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.nea-emblem {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffff56;
    border-radius: 4px;
    background: #fff;
    color: var(--auth-blue);
}

.nea-emblem img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nea-emblem i {
    font-size: 24px;
}

.org-title {
    font-size: 14px;
    font-weight: 750;
}

.org-subtitle {
    display: block;
    margin-top: 4px;
    color: #c5d4e4;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-brand-copy {
    max-width: 470px;
    margin: 52px 0;
}

.auth-kicker {
    color: #d9e5f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-kicker::before {
    width: 22px;
    height: 2px;
    display: inline-block;
    margin-right: 9px;
    background: #ef6a7d;
    content: "";
    vertical-align: middle;
}

.auth-brand h1 {
    max-width: 430px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
}

.auth-brand-copy p {
    max-width: 400px;
    margin: 0;
    color: #d4e0eb;
    font-size: 14px;
    line-height: 1.7;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    color: #f0f4f8;
    font-size: 12px;
    line-height: 1.55;
}

.auth-feature i {
    color: #ff8795;
    font-size: 16px;
}

.auth-brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #ffffff36;
    color: #c5d4e4;
    font-size: 10px;
}

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    background: #fff;
}

.auth-card {
    width: 100%;
    max-width: 410px;
    animation: auth-enter 320ms ease-out both;
}

.auth-card .eyebrow {
    margin-bottom: 8px;
    color: var(--auth-blue);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.auth-card h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.auth-card .intro {
    margin: 9px 0 26px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-card .form-label {
    margin-bottom: 6px;
    color: #263a53;
    font-size: 12px;
    font-weight: 700;
}

.auth-card .form-control {
    min-height: 46px;
    border-color: var(--auth-line);
    border-radius: 4px;
    background: #fbfcfd;
    color: var(--auth-ink);
    font-size: 13px;
}

.auth-card .form-control::placeholder {
    color: #7a899a;
    opacity: 1;
}

.auth-card .form-control:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px #0759a61c;
    background: #fff;
}

.auth-card .input-group-text {
    min-width: 44px;
    justify-content: center;
    border-color: var(--auth-line);
    background: #f3f6f8;
    color: #52677e;
}

.auth-card .form-check-input:focus {
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px #0759a61c;
}

.auth-card .btn-primary {
    min-height: 46px;
    border-color: var(--auth-blue);
    border-radius: 4px;
    background: var(--auth-blue);
    font-size: 13px;
    font-weight: 700;
}

.auth-card .btn-primary:hover {
    border-color: var(--auth-navy);
    background: var(--auth-navy);
}

.auth-card a {
    color: var(--auth-blue);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-card a:focus-visible,
.auth-card button:focus-visible,
.auth-card input:focus-visible {
    outline: 3px solid #c7223b66;
    outline-offset: 2px;
}

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 13px;
    border-left: 3px solid var(--auth-red);
    background: #f4f7f9;
    color: #4e6175;
    font-size: 11px;
    line-height: 1.55;
}

.auth-note i {
    color: var(--auth-blue);
}

.auth-links {
    margin-top: 18px;
    color: var(--auth-muted);
    font-size: 12px;
    text-align: center;
}

.auth-card .alert {
    font-size: 12px;
}

.auth-card .form-text {
    color: var(--auth-muted);
    font-size: 11px;
}

@keyframes auth-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    body.giims-auth {
        padding: 16px;
    }

    .auth-page {
        min-height: calc(100vh - 32px);
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: 270px;
        padding: 26px 30px 18px;
    }

    .auth-brand-copy {
        margin: 32px 0 24px;
    }

    .auth-brand h1 {
        max-width: 560px;
        font-size: 30px;
    }

    .auth-card-wrap {
        padding: 40px 28px;
    }
}

@media (max-width: 480px) {
    body.giims-auth {
        display: block;
        padding: 0;
    }

    .auth-page {
        min-height: 100vh;
        border: 0;
    }

    .auth-brand {
        min-height: 245px;
        padding: 20px 20px 15px;
    }

    .auth-brand-copy {
        margin: 24px 0 18px;
    }

    .auth-brand h1 {
        margin: 12px 0 8px;
        font-size: 25px;
    }

    .auth-brand-copy p {
        font-size: 12px;
    }

    .auth-brand-footer span:last-child {
        display: none;
    }

    .auth-card-wrap {
        padding: 32px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}