:root {
    color-scheme: dark;
    --background: #050b08;
    --panel: #09150f;
    --panel-strong: #0d2016;
    --line: rgba(76, 224, 132, .18);
    --green: #43df85;
    --green-strong: #23c96d;
    --yellow: #ffd447;
    --text: #f3f7f4;
    --muted: #829187;
    --danger: #ff796d;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    background:
        radial-gradient(circle at 18% 18%, rgba(31, 189, 99, .09), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 212, 71, .05), transparent 26%),
        var(--background);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(460px, .95fr);
    min-height: 100vh;
}

.brand-panel,
.form-panel {
    position: relative;
    min-height: 100vh;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(34px, 5vw, 72px);
    border-right: 1px solid var(--line);
    background:
        linear-gradient(rgba(67, 223, 133, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 223, 133, .025) 1px, transparent 1px),
        linear-gradient(145deg, #0b1d14, #06100b 72%);
    background-size: 46px 46px, 46px 46px, auto;
}

.brand-panel::after {
    position: absolute;
    right: -190px;
    bottom: -190px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(67, 223, 133, .11);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 60px rgba(67, 223, 133, .025),
        0 0 0 125px rgba(67, 223, 133, .018);
}

.brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.brand-glow-one {
    top: 20%;
    right: 8%;
    width: 210px;
    height: 210px;
    background: rgba(35, 201, 109, .08);
    filter: blur(70px);
}

.brand-glow-two {
    bottom: 6%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 212, 71, .05);
    filter: blur(60px);
}

.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font-size: 26px;
    letter-spacing: -.04em;
}

.login-brand strong span {
    color: #fff;
}

.login-brand strong {
    color: var(--green);
}

.login-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brand-message {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 72px 0;
}

.eyebrow,
.access-label {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eyebrow i,
.form-footer span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(67, 223, 133, .09);
}

.brand-message h1 {
    margin: 24px 0 18px;
    font-size: clamp(48px, 5.2vw, 82px);
    line-height: .98;
    letter-spacing: -.065em;
}

.brand-message h1 em {
    color: var(--yellow);
    font-style: normal;
}

.brand-message p {
    max-width: 570px;
    margin: 0;
    color: #a0aea5;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
}

.security-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    padding: 13px 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(6, 15, 10, .6);
}

.security-note > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(67, 223, 133, .11);
    color: var(--green);
}

.security-note strong,
.security-note small {
    display: block;
}

.security-note strong {
    font-size: 12px;
}

.security-note small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.form-panel {
    display: grid;
    padding: 34px;
    place-items: center;
}

.form-card {
    width: min(100%, 460px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(13, 32, 22, .92), rgba(7, 18, 12, .96));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

.form-card h2 {
    margin: 13px 0 8px;
    font-size: 36px;
    letter-spacing: -.045em;
}

.form-intro {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 121, 109, .24);
    border-radius: 12px;
    background: rgba(255, 121, 109, .06);
}

.login-error > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 121, 109, .12);
    color: var(--danger);
    font-weight: 900;
}

.login-error strong,
.login-error small {
    display: block;
}

.login-error strong {
    color: #ffd0cc;
    font-size: 11px;
}

.login-error small {
    margin-top: 2px;
    color: #aa8581;
    font-size: 9px;
}

.form-card form {
    display: grid;
    gap: 18px;
}

.form-card label > span {
    display: block;
    margin-bottom: 8px;
    color: #a7b4ab;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.field-control {
    display: flex;
    align-items: center;
    min-height: 53px;
    border: 1px solid rgba(119, 154, 132, .22);
    border-radius: 13px;
    background: rgba(2, 9, 5, .55);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field-control:focus-within {
    border-color: rgba(67, 223, 133, .65);
    background: rgba(4, 15, 9, .8);
    box-shadow: 0 0 0 4px rgba(67, 223, 133, .07);
}

.field-control i {
    width: 50px;
    color: #557061;
    font-size: 13px;
    font-style: normal;
    text-align: center;
}

.field-control input {
    width: 100%;
    min-width: 0;
    padding: 15px 16px 15px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.field-control input::placeholder {
    color: #4f6256;
}

.form-card button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(100deg, var(--green-strong), #52e697);
    color: #031008;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(35, 201, 109, .16);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.form-card button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(35, 201, 109, .22);
}

.form-card button:focus-visible,
.field-control input:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

.form-card button i {
    font-size: 19px;
    font-style: normal;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(103, 143, 117, .13);
}

.form-footer span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9bac9f;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.form-footer span i {
    width: 5px;
    height: 5px;
}

.form-footer small {
    color: #53645a;
    font-size: 8px;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 28px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .brand-message {
        margin: 55px 0;
    }

    .brand-message h1 {
        font-size: clamp(42px, 12vw, 68px);
    }

    .form-panel {
        min-height: auto;
        padding: 42px 22px;
    }
}

@media (max-width: 520px) {
    .login-brand img {
        width: 60px;
        height: 60px;
    }

    .brand-message {
        margin: 42px 0;
    }

    .security-note {
        width: 100%;
    }

    .form-card {
        padding: 28px 22px;
        border-radius: 19px;
    }

    .form-card h2 {
        font-size: 31px;
    }

    .form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
