:root {
    color-scheme: light;
    color: #102436;
    background: #0b3d60;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(39, 183, 245, 0.38), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(8, 47, 75, 0.48), transparent 34%),
        linear-gradient(115deg, #082f4b 0%, #0875bb 58%, #128fd4 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    position: fixed;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body::before {
    top: -180px;
    right: -120px;
    width: 460px;
    height: 460px;
}

body::after {
    bottom: -260px;
    left: -120px;
    width: 580px;
    height: 580px;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
}

.login-card {
    position: relative;
    z-index: 1;
    display: grid;
    overflow: hidden;
    width: min(930px, 100%);
    min-height: 610px;
    grid-template-columns: minmax(320px, 0.92fr) minmax(400px, 1.08fr);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 34px 100px rgba(5, 24, 55, 0.42);
}

.login-showcase {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(39, 183, 245, 0.36), transparent 28%),
        linear-gradient(155deg, #082f4b 0%, #0b527e 56%, #0875bb 100%);
}

.login-showcase::after {
    position: absolute;
    right: -140px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 55px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.showcase-brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-brand {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 15px;
    color: #0875bb;
    background: #fff;
    box-shadow: 0 12px 35px rgba(2, 24, 46, 0.22);
    font-size: 25px;
    font-weight: 900;
}

.showcase-brand strong,
.showcase-brand span {
    display: block;
}

.showcase-brand strong {
    font-size: 18px;
    letter-spacing: 0.14em;
}

.showcase-brand span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.showcase-copy {
    position: relative;
    z-index: 1;
}

.showcase-badge {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #bdeaff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.showcase-copy h2 {
    max-width: 340px;
    margin: 20px 0 16px;
    font-size: clamp(29px, 3vw, 39px);
    line-height: 1.12;
}

.showcase-copy p {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.showcase-status {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 9px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(3, 25, 48, 0.26);
    backdrop-filter: blur(10px);
}

.showcase-status i {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    grid-row: span 2;
    border-radius: 50%;
    background: #54d59a;
    box-shadow: 0 0 0 4px rgba(84, 213, 154, 0.15);
}

.showcase-status span {
    font-size: 12px;
    font-weight: 700;
}

.showcase-status strong {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-brand {
    display: none;
}

.eyebrow {
    margin: 0 0 8px;
    color: #0875bb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

h1 {
    margin: 0;
    color: #102436;
    font-size: 32px;
    letter-spacing: -0.035em;
}

.intro {
    margin: 10px 0 26px;
    color: #6a7f91;
    line-height: 1.5;
}

form,
label {
    display: grid;
    gap: 8px;
}

form {
    gap: 17px;
}

label > span:first-child {
    color: #263e51;
    font-size: 12px;
    font-weight: 800;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cbd9e4;
    border-radius: 10px;
    outline: 0;
    color: #102436;
    background: #f9fbfd;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:hover {
    border-color: #aebfcc;
}

input:focus {
    border-color: #128fd4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 143, 212, 0.12);
}

.password-field {
    position: relative;
    display: block;
}

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

.password-field button {
    position: absolute;
    top: 50%;
    right: 7px;
    height: 34px;
    padding: 0 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    color: #0875bb;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.password-field button:hover,
.password-field button:focus-visible {
    outline: 0;
    background: #eaf5fb;
}

.login-submit {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 17px 0 20px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(105deg, #0b3d60, #0875bb 70%, #128fd4);
    box-shadow: 0 12px 28px rgba(8, 117, 187, 0.24);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-1px);
    outline: 0;
    box-shadow: 0 16px 34px rgba(8, 117, 187, 0.34);
}

.login-submit b {
    font-size: 20px;
}

.login-error {
    margin: -4px 0 19px;
    padding: 12px 14px;
    border: 1px solid #f1c5c5;
    border-radius: 9px;
    color: #9c2f2f;
    background: #fff0f0;
    font-size: 13px;
}

small {
    margin-top: -8px;
    color: #718497;
}

footer {
    margin-top: 25px;
    color: #8293a2;
    text-align: center;
    font-size: 11px;
}

footer span {
    margin-right: 5px;
    color: #54b994;
}

@media (max-width: 780px) {
    .login-shell {
        padding: 20px;
    }

    .login-card {
        width: min(500px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        padding: 36px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 28px;
        color: #0b3d60;
        letter-spacing: 0.13em;
    }

    .mobile-brand .login-brand {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        color: #fff;
        background: linear-gradient(145deg, #0b3d60, #128fd4);
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .login-shell {
        padding: 12px;
    }

    .login-card {
        border-radius: 18px;
    }

    .login-panel {
        padding: 28px 22px;
    }

    h1 {
        font-size: 27px;
    }
}
