.login-page {
    display: grid;
    place-items: center;

    padding: 32px 24px;
}

.login-stage {
    width: min(1020px, 100%);
}

.login-panel {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: minmax(310px, 0.9fr) minmax(340px, 1.1fr);

    min-height: 610px;

    overflow: hidden;

    border: 1px solid var(--line-strong);
    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 35, 59, 0.94),
            rgba(3, 12, 23, 0.97)
        );

    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 70px rgba(22, 157, 255, 0.1);
}

.login-panel::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            123deg,
            transparent 0 38%,
            rgba(112, 210, 255, 0.09) 38.4%,
            transparent 40.5% 100%
        );
}

.brand-zone {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 610px;

    padding: 42px;

    border-right: 1px solid var(--line);

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(33, 140, 210, 0.2),
            transparent 17rem
        ),
        linear-gradient(
            180deg,
            rgba(11, 38, 65, 0.58),
            rgba(3, 13, 25, 0.16)
        );
}

.login-logo {
    position: relative;
    z-index: 2;

    width: min(228px, 80vw);
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 24px
            rgba(70, 187, 255, 0.38)
        );
}

.brand-orbit {
    position: absolute;
    top: 116px;

    width: 268px;
    height: 268px;

    border: 1px solid rgba(125, 214, 255, 0.22);
    border-radius: 50%;

    box-shadow:
        0 0 70px rgba(37, 153, 222, 0.18),
        inset 0 0 45px rgba(58, 174, 242, 0.08);

    transform:
        rotateX(68deg)
        rotateZ(-9deg);
}

.brand-kicker,
.section-code,
.workspace-kicker,
.welcome-code {
    margin: 24px 0 0;

    color: var(--light-blue);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.2em;
}

.brand-zone h1 {
    margin: 8px 0 0;

    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        "Liberation Sans Narrow",
        sans-serif;

    font-size: 3.15rem;
    font-weight: 800;

    line-height: 0.95;
    letter-spacing: 0.19em;

    color: #edf9ff;

    text-shadow:
        0 0 24px rgba(76, 190, 255, 0.34);
}

.brand-subtitle {
    margin: 13px 0 0;

    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.25em;
}

.login-form-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px 68px;
}

.login-form-zone header {
    margin-bottom: 32px;
}

.section-code {
    margin-top: 0;
}

.login-form-zone h2 {
    margin: 12px 0 10px;

    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        "Liberation Sans Narrow",
        sans-serif;

    font-size: clamp(2.25rem, 5vw, 3.35rem);
    font-weight: 800;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.login-form-zone header p:last-child {
    max-width: 440px;
    margin: 0;

    color: var(--text-soft);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--silver);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.06em;
}

.field input {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid var(--line);
    border-radius: 13px;

    color: var(--text);

    background:
        linear-gradient(
            180deg,
            rgba(3, 13, 24, 0.9),
            rgba(7, 23, 39, 0.84)
        );

    box-shadow:
        inset 0 1px 10px rgba(0, 0, 0, 0.28);

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.field input:hover,
.field input:focus {
    border-color: var(--line-strong);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 100px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid transparent;
    border-radius: 10px;

    color: var(--light-blue);
    background: transparent;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 150ms ease,
        border-color 150ms ease,
        background 150ms ease;
}

.password-toggle:hover {
    border-color: var(--line);

    color: #e8f8ff;
    background: rgba(34, 130, 191, 0.14);
}

.password-toggle .eye-icon {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-icon[hidden] {
    display: none;
}

.remember-option {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    align-items: center;

    color: var(--text-soft);

    font-size: 0.85rem;
    line-height: 1.35;

    cursor: pointer;
}

.remember-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    position: relative;

    width: 20px;
    height: 20px;

    border: 1px solid var(--line-strong);
    border-radius: 6px;

    background: rgba(7, 25, 42, 0.9);
}

.remember-option input:checked + .custom-check {
    border-color: #67c8ff;

    background:
        linear-gradient(
            145deg,
            #198ed0,
            #74d6ff
        );
}

.remember-option input:checked + .custom-check::after {
    content: "";

    position: absolute;
    left: 6px;
    top: 2px;

    width: 5px;
    height: 10px;

    border: solid #03101c;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.remember-option input:focus-visible + .custom-check {
    box-shadow: var(--focus);
}

.primary-button {
    min-height: 54px;
    margin-top: 2px;

    border: 1px solid rgba(130, 218, 255, 0.52);
    border-radius: 14px;

    color: #eefdff;

    background:
        linear-gradient(
            135deg,
            rgba(20, 121, 184, 0.94),
            rgba(43, 172, 233, 0.82)
        );

    box-shadow:
        0 12px 30px rgba(9, 115, 182, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    font-weight: 800;
    letter-spacing: 0.06em;

    cursor: pointer;
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.build-note {
    margin: -5px 0 0;

    color: var(--text-muted);

    font-size: 0.75rem;
    text-align: center;
}

.login-footer {
    padding: 16px;

    color: var(--text-muted);

    font-size: 0.72rem;
    text-align: center;
}

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

    .login-panel {
        grid-template-columns: 1fr;
    }

    .brand-zone {
        min-height: 370px;
        padding: 34px 24px;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .brand-orbit {
        top: 45px;
    }

    .login-form-zone {
        padding: 42px 28px;
    }
}

.auth-error {
    margin: 0;
    padding: 12px 14px;

    border: 1px solid rgba(255, 126, 126, 0.42);
    border-radius: 12px;

    color: #ffd1d1;
    background: rgba(112, 25, 31, 0.25);

    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-notice {
    margin: 0;
    padding: 12px 14px;

    border: 1px solid rgba(106, 211, 255, 0.42);
    border-radius: 12px;

    color: #dff8ff;
    background: rgba(19, 99, 145, 0.24);

    font-size: 0.82rem;
    line-height: 1.45;
}
