:root {
    --navy-950: #071426;
    --navy-900: #0b1f36;
    --navy-800: #123252;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;

    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;

    --red-600: #dc2626;
    --red-50: #fef2f2;

    --green-500: #22c55e;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow:
        0 24px 60px rgba(15, 23, 42, 0.12);
}


* {
    box-sizing: border-box;
}


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


body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--slate-900);
    background: var(--slate-50);
}


button,
input {
    font: inherit;
}


.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(360px, 0.95fr)
        minmax(520px, 1.25fr);
}


.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;

    padding:
        clamp(48px, 7vw, 100px);

    color: var(--white);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(59, 130, 246, 0.28),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(37, 99, 235, 0.18),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--navy-950),
            var(--navy-900)
        );
}


.login-brand::before {
    content: "";
    position: absolute;

    width: 520px;
    height: 520px;

    right: -300px;
    top: -220px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}


.login-brand::after {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;

    left: -240px;
    bottom: -210px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}


.brand-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;
}


.brand-mark {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin-bottom: 44px;

    border:
        1px solid
        rgba(255, 255, 255, 0.24);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(12px);

    font-weight: 800;
    letter-spacing: -0.05em;
}


.brand-mark.small {
    width: 42px;
    height: 42px;

    margin: 0;

    border-radius: 12px;

    color: var(--white);
    background: var(--navy-900);
}


.brand-eyebrow,
.login-eyebrow {
    margin:
        0
        0
        14px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;
}


.brand-eyebrow {
    color: #93c5fd;
}


.brand-content h1 {
    margin:
        0
        0
        22px;

    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 0.98;
    letter-spacing: -0.055em;
}


.brand-description {
    max-width: 460px;

    margin: 0;

    color: var(--slate-300);

    font-size: 17px;
    line-height: 1.7;
}


.brand-features {
    margin-top: 72px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);
}


.feature {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
}


.feature span {
    color: #60a5fa;

    font-size: 12px;
    font-weight: 800;
}


.feature p {
    margin: 0;

    color: var(--slate-200);

    font-size: 14px;
}


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

    padding: 48px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );
}


.login-card {
    width: 100%;
    max-width: 430px;
}


.mobile-brand {
    display: none;
}


.login-heading {
    margin-bottom: 36px;
}


.login-eyebrow {
    color: var(--blue-600);
}


.login-heading h2 {
    margin:
        0
        0
        10px;

    font-size: 38px;
    letter-spacing: -0.04em;
}


.login-heading > p:last-child {
    margin: 0;

    color: var(--slate-500);

    line-height: 1.6;
}


.field {
    margin-bottom: 22px;
}


.field label {
    display: block;

    margin-bottom: 9px;

    color: var(--slate-700);

    font-size: 13px;
    font-weight: 700;
}


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

    padding: 0 15px;

    border:
        1px solid
        var(--slate-300);

    border-radius: var(--radius-sm);

    color: var(--slate-900);
    background: var(--white);

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.field input::placeholder {
    color: var(--slate-400);
}


.field input:focus {
    border-color: var(--blue-500);

    box-shadow:
        0 0 0 4px
        rgba(59, 130, 246, 0.1);
}


.password-wrapper {
    position: relative;
}


.password-wrapper input {
    padding-right: 64px;
}


.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform:
        translateY(-50%);

    border: 0;
    padding: 8px;

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

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}


.login-error {
    margin:
        4px
        0
        18px;

    padding:
        12px
        14px;

    border:
        1px solid
        #fecaca;

    border-radius: var(--radius-sm);

    color: var(--red-600);
    background: var(--red-50);

    font-size: 13px;
    line-height: 1.5;
}


.primary-button {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: var(--radius-sm);

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            #1d4ed8
        );

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 24px
        rgba(37, 99, 235, 0.2);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.primary-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 16px 28px
        rgba(37, 99, 235, 0.25);
}


.primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}


.spinner {
    width: 16px;
    height: 16px;

    border:
        2px solid
        rgba(255, 255, 255, 0.45);

    border-top-color:
        var(--white);

    border-radius: 50%;

    animation:
        spin 0.7s linear infinite;
}


.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 30px;

    color: var(--slate-500);

    font-size: 12px;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green-500);

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.1);
}


@keyframes spin {
    to {
        transform:
            rotate(360deg);
    }
}


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


    .login-brand {
        display: none;
    }


    .login-panel {
        min-height: 100vh;

        padding:
            32px
            22px;
    }


    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;

        margin-bottom: 52px;
    }


    .login-heading h2 {
        font-size: 34px;
    }
}
