body#login.login-page {
    display: flow-root;
    min-height: 100vh;
    background-color: #4E0410;
    background-image:
        radial-gradient(ellipse 90% 45% at 50% 0%, rgba(255, 92, 110, .5) 0%, transparent 100%),
        linear-gradient(180deg, #E3223F 0%, #AF0C24 40%, #4E0410 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Roboto', 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.login-box-body a,
.login-box-body .btn-link {
    color: #AF0C24;
}

.login-box-body a:hover,
.login-box-body a:focus,
.login-box-body .btn-link:hover,
.login-box-body .btn-link:focus {
    color: #7A0819;
}

.login-box-body .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background-color: #fafafa;
    box-shadow: none;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.login-box-body .auth-alert strong {
    font-weight: 500;
}

.auth-alert-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 14px;
}

.auth-alert-text {
    flex: 1 1 auto;
    min-width: 0;
}

.login-box-body .auth-alert-close {
    flex: 0 0 auto;
    margin-left: 4px;
    color: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    opacity: .45;
    text-shadow: none;
}

.login-box-body .auth-alert-close:hover,
.login-box-body .auth-alert-close:focus {
    color: inherit;
    opacity: .8;
}

.login-box-body .auth-alert--success {
    border-color: #cfe7d6;
    background-color: #f3f9f4;
}

.auth-alert--success .auth-alert-icon,
.auth-alert--success strong {
    color: #2f7d4f;
}

.login-box-body .auth-alert--warning {
    border-color: #f0dcb4;
    background-color: #fdf7ec;
}

.auth-alert--warning .auth-alert-icon,
.auth-alert--warning strong {
    color: #96620a;
}

.login-box-body .auth-alert--danger {
    border-color: #f2ced5;
    background-color: #fdf2f4;
}

.auth-alert--danger .auth-alert-icon,
.auth-alert--danger strong {
    color: #AF0C24;
}

.auth-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-options .switch {
    width: 3.6rem;
    height: 1.6rem;
    flex: 0 0 auto;
}

.auth-options .slider:before {
    height: 1.4rem;
    width: 1.4rem;
}

.auth-options input:checked + .slider {
    background-color: #AF0C24;
}

.auth-options input:checked + .slider:before {
    transform: translateX(2rem);
}

.auth-options input:focus + .slider {
    box-shadow: 0 0 0 2px rgba(175, 12, 36, .4);
}

.auth-remember {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.auth-forgot {
    margin-left: auto;
    font-size: 13px;
}

.login-page .login-box {
    margin: 5% auto 24px;
}

.login-page .login-logo {
    margin-bottom: 20px;
}

.login-page .login-logo img {
    width: 180px;
    max-width: 70%;
    height: auto;
}

.login-page .login-box-body {
    box-shadow: 0 10px 30px rgba(40, 0, 8, .35);
}

.auth-illustration {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

canvas.auth-illustration {
    height: 170px;
}

.login-box-msg .auth-title {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
    color: #333;
}

.auth-password-toggle {
    cursor: pointer;
    pointer-events: auto;
}

.auth-forgot {
    padding-top: 0;
}

.login-box-body .btn-danger {
    background-color: #AF0C24;
    border-color: #950A1F;
}

.login-box-body .btn-danger:hover,
.login-box-body .btn-danger:focus,
.login-box-body .btn-danger:active {
    background-color: #950A1F;
    border-color: #7A0819;
}

.auth-divider {
    position: relative;
    margin: 20px 0 12px;
    text-align: center;
    color: #999;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    border-top: 1px solid #eee;
}

.auth-divider span {
    position: relative;
    padding: 0 10px;
    background: #fff;
}

#qrcodeLoginPanel {
    margin-top: 4px;
}

.login-box-body.auth-qrcode-mode .auth-main,
.login-box-body.auth-qrcode-mode #qrcodeLoginCall {
    display: none;
}

#qrcodeLoginPanel .auth-title {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    color: #333;
}

.auth-qrcode-hint {
    margin: 0 auto 12px;
    max-width: 280px;
    font-size: 12px;
    line-height: 1.4;
}

.auth-qrcode-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 184px;
}

.auth-qrcode-stage.is-empty {
    min-height: 0;
}

.auth-qrcode {
    width: 184px;
    height: 184px;
    max-width: 100%;
    padding: 6px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background-color: #fff;
}

.auth-qrcode-stage.is-expired .auth-qrcode {
    filter: blur(3px);
    opacity: .3;
    transition: opacity .2s ease, filter .2s ease;
}

.auth-qrcode-renew {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 184px;
    max-width: 100%;
    height: 184px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #333;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.auth-qrcode-renew-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #AF0C24;
    box-shadow: 0 4px 12px rgba(175, 12, 36, .3);
    color: #fff;
    font-size: 22px;
    transition: background-color .15s ease, transform .15s ease;
}

.auth-qrcode-renew-label {
    padding: 2px 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 500;
}

.auth-qrcode-renew:hover .auth-qrcode-renew-icon,
.auth-qrcode-renew:focus-visible .auth-qrcode-renew-icon {
    background-color: #8e0a1d;
    transform: scale(1.05);
}

.auth-qrcode-renew:focus {
    outline: none;
}

.auth-qrcode-renew:focus-visible {
    outline: 2px solid #AF0C24;
    outline-offset: 2px;
}

.auth-qrcode-renew:disabled {
    cursor: progress;
}

#qrcodeLoginExpiry:empty {
    display: none;
}

#qrcodeLoginExpiry {
    margin: 8px 0 0;
}

#qrcodeLoginHide {
    margin-top: 4px;
}

#qrcodeLoginMessage .auth-alert {
    margin: 10px 0 0;
}

.auth-code {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
}

.auth-resend {
    margin-top: 10px;
}

.auth-footer {
    margin: 16px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, .85);
}

.auth-footer strong {
    color: #fff;
}

@media (min-width: 992px) {
    .login-page .login-box {
        width: 720px;
    }

    .auth-columns {
        display: flex;
        align-items: stretch;
        gap: 28px;
    }

    .auth-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    #qrcodeLogin {
        display: flex;
        flex: 0 0 260px;
        flex-direction: column;
        justify-content: center;
        padding-left: 28px;
        border-left: 1px solid #eee;
    }

    #qrcodeLoginCall,
    #qrcodeLoginHide {
        display: none;
    }

    #qrcodeLoginPanel {
        margin-top: 0;
    }

    .auth-qrcode-hint {
        max-width: none;
    }
}
