:root {
    --login-deep: #063a0a;
    --login-green: #3ca33b;
    --login-green2: #0c8d0c;
    --login-muted: #8da199;
}
* {
    box-sizing: border-box;
}
body.login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--login-deep);
    color: #fff;
    font:
        15px/1.5 Inter,
        ui-sans-serif,
        system-ui,
        sans-serif;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.login-page:before,
.login-page:after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
.login-page:before {
    width: 480px;
    height: 480px;
    right: -190px;
    top: -180px;
    background: #b6ff0018;
}
.login-page:after {
    width: 360px;
    height: 360px;
    left: -180px;
    bottom: -160px;
    background: #0c8f5b33;
}
.login-shell {
    position: relative;
    width: min(1050px, 92vw);
    min-height: 610px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    color: #17251d;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px #0008;
    animation: loginShow 0.65s both;
}
.login-brand {
    position: relative;
    background: linear-gradient(145deg, #0b3527, #071c16 70%);
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.login-brand:after {
    content: "+";
    position: absolute;
    right: -30px;
    bottom: -100px;
    color: var(--login-green);
    opacity: 0.18;
    font-size: 420px;
    font-weight: 900;
    line-height: 1;
}
.login-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 19px;
}
.login-logo img {
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--login-green);
    box-shadow: 0 0 35px #3ca33b6b;
    animation: loginPulse 3s ease-in-out infinite;
}
.login-copy,
.login-status {
    position: relative;
    z-index: 1;
}
.login-eyebrow {
    color: #8fe58e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
}
.login-copy h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -2px;
    margin: 13px 0;
}
.login-copy h1 span {
    color: var(--login-green);
}
.login-copy p {
    max-width: 350px;
    color: #d8eadc;
    margin: 0;
}
.login-status {
    color: #e1f1e3;
    font-size: 12px;
}
.login-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fe58e;
    margin-right: 7px;
    box-shadow: 0 0 12px #8fe58e;
}
.login-form-panel {
    padding: 54px;
    display: flex;
    align-items: center;
}
.login-form-inner {
    width: 100%;
    max-width: 390px;
    margin: auto;
    color: #17251d;
}
.login-form-inner h2 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 0 0 7px;
    color: var(--login-deep);
}
.login-subtitle {
    color: #728078;
    margin: 0 0 28px;
}
.login-field {
    margin-bottom: 18px;
}
.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
    color: #34443b;
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap span {
    position: absolute;
    left: 14px;
    top: 12px;
    color: #789080;
    font-weight: 800;
}
.login-input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid #dce6dd;
    border-radius: 12px;
    background: #fbfdf9;
    outline: 0;
    font: inherit;
    transition: 0.2s;
}
.login-input-wrap input:focus {
    border-color: var(--login-green2);
    box-shadow: 0 0 0 4px #b6ff0033;
}
.login-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: #071c16;
    color: #fff;
    font: 800 15px inherit;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 10px 20px #071c1620;
}
.login-submit:hover {
    background: var(--login-green);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px #3ca33b55;
}
.login-error {
    background: #fff0ef;
    color: #a32d25;
    border: 1px solid #ffd0cb;
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
}
.login-secure {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e7eee8;
    color: #809087;
    font-size: 12px;
    text-align: center;
}
@keyframes loginShow {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes loginPulse {
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 12px #3ca33b);
    }
}
@media (max-width: 700px) {
    body.login-page {
        overflow: auto;
        padding: 18px;
    }
    .login-shell {
        display: block;
        min-height: 0;
        width: 100%;
        border-radius: 22px;
    }
    .login-brand {
        padding: 28px 24px;
        min-height: 285px;
    }
    .login-copy h1 {
        font-size: 35px;
    }
    .login-status {
        margin-top: 28px;
    }
    .login-form-panel {
        padding: 30px 24px 34px;
    }
    .login-form-inner h2 {
        font-size: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .login-shell,
    .login-logo img {
        animation: none;
    }
}
/* Login brand contrast: keep the identity text readable on the dark panel. */
.login-brand,
.login-logo,
.login-logo span,
.login-copy h1 {
    color: #fff;
}
.login-copy h1 span {
    color: #66d85f;
}
