* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.login-page {
    min-height: 100vh;
    padding: 0;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.14) 0 14%, transparent 14.1%),
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.08) 0 13%, transparent 13.1%),
        linear-gradient(135deg, #113b59 0%, #0f6f67 100%);
    color: #09213a;
    font: 14px/1.45 "Inter", "Segoe UI", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 129, 75, 0.25);
    outline-offset: 2px;
}

.login-shell {
    flex: 1;
    min-height: calc(100vh - 27px);
    display: grid;
    grid-template-columns: 47.5% 52.5%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #124769 0%, #0d765e 100%);
    color: #ffffff;
}

.brand-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.brand-ring-top {
    width: 380px;
    height: 380px;
    left: -190px;
    top: -175px;
}

.brand-ring-bottom {
    width: 360px;
    height: 360px;
    right: -180px;
    bottom: -180px;
}

.brand-content {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 58px 48px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-logo {
    width: min(360px, 88%);
    height: 118px;
    padding: 12px 18px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.brand-copy {
    margin-top: 26px;
}

.brand-copy h1,
.brand-copy h2,
.brand-copy h3,
.brand-copy p {
    margin: 0;
}

.brand-copy h1 {
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.18;
    font-weight: 800;
}

.brand-copy h2 {
    margin-top: 10px;
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.2;
    font-weight: 900;
}

.brand-copy p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 500;
}

.brand-divider {
    width: 64px;
    height: 3px;
    margin: 26px auto 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.access-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 37px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.access-pill svg,
.signin-kicker svg,
.login-button svg,
.forgot-link svg,
.secure-note svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy h3 {
    margin-top: 22px;
    font-size: clamp(30px, 2.8vw, 38px);
    line-height: 1.15;
    font-weight: 850;
}

.brand-copy .brand-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.65;
}

.signin-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px clamp(58px, 8vw, 118px);
    background: #ffffff;
}

.signin-box {
    width: min(100%, 480px);
}

.signin-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #008847;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signin-box h2 {
    margin: 10px 0 6px;
    color: #08243f;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
}

.signin-help {
    margin: 0 0 24px;
    color: #5f6f81;
}

.login-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #f0b9b2;
    border-radius: 8px;
    background: #fff3f1;
    color: #9f2a20;
    font-weight: 600;
}

.signin-box label {
    display: block;
    margin: 13px 0 7px;
    color: #2d3f55;
    font-weight: 700;
}

.signin-box label span {
    color: #d53c31;
}

.input-wrap {
    position: relative;
}

.input-wrap > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8395a7;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signin-box input {
    display: block;
    width: 100%;
    height: 49px;
    border: 1px solid #cdd8e6;
    border-radius: 8px;
    background: #eaf2ff;
    color: #10253d;
    font-size: 14px;
    font-weight: 500;
}

.input-wrap input {
    padding: 0 44px;
}

.signin-box input::placeholder {
    color: #8ca0b5;
}

.icon-button {
    position: absolute;
    right: 12px;
    top: 50%;
    display: grid;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    background: transparent;
    color: #7c8fa2;
}

.icon-button svg,
.captcha-refresh svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 166px 60px;
    gap: 10px;
}

.captcha-row input {
    padding: 0 16px;
    background: #f8fbff;
}

.captcha-image {
    position: relative;
    height: 49px;
    overflow: hidden;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    background:
        linear-gradient(14deg, transparent 0 42%, rgba(217, 0, 154, 0.82) 43% 47%, transparent 48%),
        linear-gradient(-6deg, transparent 0 48%, rgba(31, 203, 117, 0.58) 49% 53%, transparent 54%),
        repeating-linear-gradient(90deg, #dde6f2 0 11px, #edf1f7 11px 22px);
    color: #4c42bf;
    font: 800 28px/49px "Trebuchet MS", Arial, sans-serif;
    letter-spacing: 10px;
    text-align: center;
    text-decoration: line-through;
    transform: skewX(-5deg);
}

.captcha-refresh {
    display: grid;
    height: 49px;
    place-items: center;
    border: 1px solid #cfe9dd;
    border-radius: 8px;
    background: #f2fbf6;
    color: #008847;
}

.login-button {
    display: flex;
    width: 100%;
    height: 49px;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: #088545;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 14px 22px rgba(8, 133, 69, 0.22);
}

.login-button:hover {
    background: #05783c;
}

.forgot-link {
    display: flex;
    width: fit-content;
    margin: 22px auto 0;
    align-items: center;
    gap: 7px;
    color: #113f6b;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.secure-note {
    display: flex;
    margin-top: 50px;
    padding-top: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #e6eaf0;
    color: #8b9aab;
    font-size: 12px;
}

.secure-note svg {
    color: #008847;
}

.login-footer {
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #061c2d;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 960px) {
    body.login-page {
        padding: 28px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .brand-content {
        padding: 36px 24px;
    }

    .signin-panel {
        padding: 36px 24px 42px;
    }
}

@media (max-width: 560px) {
    body.login-page {
        padding: 18px;
    }

    .captcha-row {
        grid-template-columns: 1fr 54px;
    }

    .captcha-image {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .captcha-refresh {
        grid-column: 2;
        grid-row: 1;
    }
}
