html,
body.login-page {
    min-height: 100%;
    margin: 0;
    background: #f3f3f3;
}

body.login-page {
    font-family: Arial, Helvetica, sans-serif;
    color: #3f4d5a;
}

.login-page__viewport {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 86px 20px 34px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(to bottom, #f7f7f7 0%, #f3f3f3 100%);
    box-sizing: border-box;
}

.login-shell {
    width: 100%;
    max-width: 450px;
}

/* =========================================================
   LOGOS
   ========================================================= */

.login-shell__top-logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 12px;
    padding-left: 4px;
}

.login-shell__top-logo img {
    display: block;
    width: auto;
    height: 61px;
    max-width: 190px;
    object-fit: contain;
}

.login-shell__bottom-logo {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 12px;
    padding-right: 2px;
}

.login-shell__bottom-logo img {
    display: block;
    width: auto;
    height: 70px;
    max-width: 210px;
    object-fit: contain;
}

/* =========================================================
   CARD
   ========================================================= */

.login-card {
    background: #f7f7f7;
    border: 0;
    border-radius: 10px;
    padding: 20px 22px 16px;
    box-shadow: -10px 10px 14px rgba(0, 0, 0, 0.10);
}

.login-card__title {
    position: relative;
    margin: 4px 0 24px;
    text-align: center;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #6584a4;
}

.login-card__title::before,
.login-card__title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24%;
    height: 2px;
    transform: translateY(-50%);
}

.login-card__title::before {
    left: 0;
    background: linear-gradient(to left, #8a8a8a 0%, rgba(255, 255, 255, 0) 100%);
}

.login-card__title::after {
    right: 0;
    background: linear-gradient(to right, #8a8a8a 0%, rgba(255, 255, 255, 0) 100%);
}

/* =========================================================
   ALERT
   ========================================================= */

.login-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #f1c3c8;
    border-radius: 5px;
    background: #f8d7da;
    color: #7b1e28;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
}

/* =========================================================
   FORM
   ========================================================= */

.login-form__group {
    margin-bottom: 11px;
}

.login-form__group input[type="text"],
.login-form__group input[type="password"] {
    display: block;
    width: 100%;
    height: 39px;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid #cdd3da;
    border-radius: 4px;
    background: #ffffff;
    color: #4a5662;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form__group input::placeholder {
    color: #657381;
    opacity: 1;
}

.login-form__group input:focus {
    outline: none;
    border-color: #9ec7d9;
    box-shadow: 0 0 0 2px rgba(92, 186, 222, 0.10);
}

.login-form__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    align-items: center;
    column-gap: 14px;
    margin-top: 6px;
}

.login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding-left: 2px;
    color: #4f5963;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.login-checkbox input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #5cbade;
    cursor: pointer;
}

.login-form__submit-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 188px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #e64904;
    border-radius: 7px;
    background: #5cbade;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        transform 0.10s ease;
}

.login-submit:hover {
    background: #f99900;
    border-color: #5cbade;
}

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

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 186, 222, 0.16);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
    .login-page__viewport {
        padding-top: 42px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-shell {
        max-width: 100%;
    }

    .login-shell__top-logo,
    .login-shell__bottom-logo {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .login-shell__top-logo img {
        height: 56px;
        max-width: 178px;
    }

    .login-shell__bottom-logo {
        margin-top: 14px;
    }

    .login-shell__bottom-logo img {
        height: 60px;
        max-width: 190px;
    }

    .login-card {
        padding: 18px;
    }

    .login-card__title {
        font-size: 23px;
        margin-bottom: 24px;
    }

    .login-card__title::before,
    .login-card__title::after {
        width: 20%;
    }

    .login-form__actions {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .login-form__submit-wrap {
        justify-content: stretch;
    }

    .login-submit {
        width: 100%;
    }
}