* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: clamp(16px, 4vw, 56px);
    background-color: #102f60;
    background-image:
        linear-gradient(124deg, transparent 16%, #69c8ff26 19%, #69c8ff16 28%, transparent 31%,
                        transparent 64%, #69c8ff25 67%, #69c8ff12 77%, transparent 80%),
        radial-gradient(ellipse at 88% 0%, #236bb8, transparent 70%),
        linear-gradient(145deg, #153961, #0b2148 76%);
    color: #122640;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    width: min(100%, 1080px);
    min-height: 630px;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 80px #03112670, 0 4px 12px #03112633;
}

.login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 62px);
    color: #fff;
    background: radial-gradient(ellipse at 90% 0%, #236bb8, transparent 74%), #102f60;
}

.login-wordmark {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: .15em;
}

.login-wordmark img {
    padding: 7px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.login-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 39px, #ffffff0b 39px 40px),
                repeating-linear-gradient(90deg, transparent 0 39px, #ffffff0b 39px 40px);
}

.login-pattern i {
    position: absolute;
    top: 8%;
    left: 47%;
    width: 25%;
    height: 77%;
    transform: skewX(-34deg);
    border: 1px solid #a4e0ff55;
    background: linear-gradient(160deg, #7dd7ff46, #4da6ef08);
}

.login-pattern i:nth-child(2) {
    top: 22%;
    left: 73%;
}

.login-pattern i:nth-child(3) {
    top: -11%;
    left: 97%;
}

.login-brand-title {
    max-width: 8.5em;
    margin: 0;
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.055em;
}

.login-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding: 48px clamp(30px, 6vw, 86px) 25px;
}

.login-content {
    width: 100%;
    max-width: 370px;
    margin-inline: auto;
}

.login-header h1 {
    margin: 0;
    font-size: clamp(31px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -.055em;
}

.login-header p {
    margin: 12px 0 32px;
    color: #53657c;
    line-height: 1.55;
}

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

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #a9b8ca;
    border-radius: 11px;
    background: #f7faff;
    color: inherit;
    font: inherit;
}

.login-field input::placeholder {
    color: #5e7189;
}

.login-password {
    position: relative;
}

.login-password input {
    padding-right: 99px;
}

.login-password button {
    position: absolute;
    inset: 5px 5px 5px auto;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1b58a2;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.login-password button:hover {
    background: #e6eef9;
}

.login-submit {
    position: relative;
    min-height: 54px;
    margin-top: 5px;
    padding: 12px 40px;
    border: 0;
    border-radius: 11px;
    background: #1855a7;
    box-shadow: 0 8px 18px #1855a72e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.login-submit:hover {
    background: #114788;
}

.login-submit span {
    position: absolute;
    inset-inline-end: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 21px;
}

.login-form :focus-visible {
    outline: 2px solid #1855a7;
    outline-offset: 2px;
}

.login-error {
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff0ee;
    color: #9d241a;
    font-size: 14px;
}

.login-footer {
    padding-top: 36px;
    color: #53657c;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 760px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 520px;
        border-radius: 21px;
    }

    .login-brand {
        padding: 24px;
    }

    .login-brand-title {
        max-width: none;
        font-size: clamp(22px, 5vw, 31px);
    }

    .login-panel {
        padding: 30px 24px 20px;
    }

    .login-header p {
        margin-bottom: 24px;
    }

    .login-footer {
        padding-top: 27px;
    }
}
