html,
body.login-body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body.login-body {
    background: #08111e;
    color: #eef4fc;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow: auto;
    padding: 28px 18px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(26, 91, 142, 0.23), transparent 46%),
        radial-gradient(ellipse at 100% 100%, rgba(32, 108, 142, 0.13), transparent 42%),
        #08111e;
}

.login-page::before,
.login-page::after {
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(113, 174, 221, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-page::before {
    top: -150px;
    left: -100px;
    box-shadow: 0 0 0 34px rgba(113, 174, 221, 0.025), 0 0 0 68px rgba(113, 174, 221, 0.018);
}

.login-page::after {
    right: -150px;
    bottom: -180px;
    width: 340px;
    height: 340px;
    box-shadow: 0 0 0 42px rgba(113, 174, 221, 0.02);
}

.login-card {
    width: min(100%, 430px);
    padding: 38px 38px 28px;
    border: 1px solid rgba(157, 185, 214, 0.17);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(20, 34, 51, 0.97), rgba(13, 24, 38, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.login-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(80, 190, 239, 0.4);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(23, 155, 207, 0.25), rgba(23, 155, 207, 0.08));
    color: #73d4f5;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.08em;
}

.login-brand-copy {
    display: grid;
    gap: 3px;
}

.login-brand-copy strong {
    color: #f4f8fd;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.login-brand-copy span {
    color: #8da1b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

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

.login-eyebrow {
    margin: 0 0 9px;
    color: #66c8ed;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.login-heading h1 {
    margin: 0;
    color: #f4f7fb;
    font-size: clamp(25px, 6vw, 30px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.2;
}

.login-heading > p:last-child {
    margin: 9px 0 0;
    color: #9bacc0;
    font-size: 14px;
    line-height: 1.55;
}

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

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

.login-field label {
    margin: 0;
    color: #dbe5f0;
    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #34465b;
    border-radius: 12px;
    outline: none;
    background: rgba(5, 13, 23, 0.48);
    color: #f2f7fc;
    font: inherit;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-field input::placeholder {
    color: #71849a;
}

.login-field input:hover {
    border-color: #4a6079;
}

.login-field input:focus {
    border-color: #45b8e3;
    background: rgba(5, 13, 23, 0.72);
    box-shadow: 0 0 0 3px rgba(69, 184, 227, 0.15);
}

.login-submit {
    min-height: 52px;
    margin-top: 3px;
    border: 1px solid rgba(105, 215, 247, 0.48);
    border-radius: 12px;
    background: linear-gradient(105deg, #087fb5, #13a5cf);
    box-shadow: 0 9px 24px rgba(4, 125, 177, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(4, 125, 177, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:focus-visible,
.login-recovery:focus-visible {
    outline: 3px solid rgba(105, 215, 247, 0.6);
    outline-offset: 3px;
}

.login-recovery {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    color: #83d9f5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.login-recovery:hover {
    color: #c0efff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-footnote {
    margin: 28px 0 0;
    color: #73869b;
    font-size: 11px;
    text-align: center;
}

.login-footnote span {
    padding: 0 4px;
    color: #4e6d88;
}

.login-alert {
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.login-alert-success {
    border-color: rgba(78, 190, 135, 0.3);
    background: rgba(35, 132, 91, 0.14);
    color: #9be4bf;
}

.login-alert-error {
    border-color: rgba(240, 103, 112, 0.3);
    background: rgba(191, 49, 67, 0.13);
    color: #ffb2b6;
}

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

    .login-card {
        padding: 27px 22px 22px;
        border-radius: 20px;
    }

    .login-brand {
        margin-bottom: 29px;
    }
}

@media (max-height: 620px) {
    .login-page {
        align-items: start;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .login-brand {
        margin-bottom: 20px;
    }

    .login-footnote {
        margin-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
