.app-login-page {
    isolation: isolate;
    color: var(--text-color);
}

.app-login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
        url('/static/app_console/login/base/img/bg_login.png') center / cover no-repeat;
    pointer-events: none;
}

.app-login-page #base_wrap {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.app-login-page #base_container {
    display: flex;
    flex: 1;
    padding-top: 28px;
    padding-bottom: 32px;
}

.app-login-page footer {
    display: none;
}

.app-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    min-width: 0;
    margin-inline: auto;
    gap: 20px;
}

.app-login .login-panel {
    width: 100%;
    padding: 32px 40px 40px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
}

.app-login .login-heading {
    margin-bottom: 32px;
}

.app-login h1 {
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
}

.app-login h1 img {
    display: block;
    width: 100%;
    height: auto;
}

.app-login .login-heading p {
    color: var(--text-sub-color);
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
}

.app-login .login-section-title {
    margin-bottom: 28px;
    padding: 12px 4px;
    border-bottom: 4px solid var(--yellow-color);
    color: var(--navy-color);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.app-login .login-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.app-login .login-field {
    min-width: 0;
}

.app-login .login-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.app-login .login-field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-color);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.app-login .login-field input:focus {
    border-color: var(--navy-color);
}

.app-login input[aria-invalid='true'] {
    border-color: #BA2525;
}

.app-login .login-password-wrap {
    position: relative;
}

.app-login .login-password-wrap input {
    padding-right: 52px;
}

.app-login .password-toggle {
    display: grid;
    place-items: center;
    position: absolute;
    inset: 0 0 0 auto;
    width: 48px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-sub-color);
    font-size: 22px;
}

.app-login #login-error {
    margin-top: 16px;
    color: #BA2525;
    font-size: 14px;
    line-height: 1.7;
}

.app-login #login-error:empty {
    display: none;
}

.app-login .login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 14px 12px;
    border-radius: 8px;
    background: var(--navy-color);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.app-login .login-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.app-login .login-terms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.app-login .login-terms a { color: var(--navy-color); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.app-login :focus-visible {
    outline: 3px solid var(--yellow-color);
    outline-offset: 2px;
}

.app-login .login-support {
    width: 100%;
    padding: 22px 20px;
    border: 1px solid var(--yellow-light-color);
    border-radius: 12px;
    background-color: var(--background-point-color);
    color: var(--main-color);
    text-align: center;
    line-height: 1.6;
}

.app-login .login-support h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.app-login .support-phone {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.app-login .support-phone a {
    color: inherit;
}

.app-login .support-hours {
    margin-top: 6px;
    color: var(--text-sub-color);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 540px) {
    .app-login .login-panel {
        padding: 24px 20px 28px;
        border-radius: 12px;
    }

    .app-login h1 {
        width: 230px;
    }

    .app-login .login-heading {
        margin-bottom: 24px;
    }

    .app-login .login-heading p {
        font-size: 14px;
    }

    .app-login .login-section-title {
        font-size: 14px;
    }
}
