body.login-bg {
    background: linear-gradient(135deg, #23272e 0%, #181c20 100%);
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.login-bg::before {
    content: "";
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at 70% 30%, #ff3b3f33 0%, #23272e 70%);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}
.login-window {
    max-width: 410px;
    width: 100%;
    margin: auto;
    margin-top: 7vh;
    background: #23272e;
    border-radius: 18px;
    border: 3px solid #ff3b3f;
    box-shadow: 0 12px 48px 0 rgba(255,59,63,0.13), 0 2px 0 #ff3b3f inset, 0 1.5px 0 #fff3 inset;
    overflow: hidden;
    animation: fadeInDown 0.7s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}
.window-bar {
    height: 44px;
    background: linear-gradient(90deg, #1a1d20 80%, #2c2f34 100%);
    border-bottom: 2.5px solid #ff3b3f;
    display: flex;
    align-items: center;
    user-select: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: 0 2px 8px rgba(255,59,63,0.07);
}
.window-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
    border: 1.5px solid #181c20;
    box-shadow: 0 1px 3px rgba(0,0,0,0.13);
}
.login-form {
    padding: 2.7rem 2.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.login-title {
    color: #ff3b3f;
    font-weight: bold;
    margin-bottom: 1.7rem;
    text-align: center;
    letter-spacing: 1px;
    font-size: 2.1rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(255,59,63,0.08);
}
.login-form .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}
.login-form .form-control, .login-form .form-control:focus {
    background: #181c20;
    color: #fff;
    border: 2px solid #ff3b3f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,59,63,0.07);
    font-size: 1.13rem;
    padding: 0.95rem 1.2rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.login-form .form-control::placeholder {
    color: #fff !important;
    opacity: 0.8;
}
.btn-login {
    background: linear-gradient(90deg, #ff3b3f 0%, #ff7b7f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.18rem;
    padding: 1rem 0;
    box-shadow: 0 4px 18px 0 rgba(255,59,63,0.13), 0 1.5px 0 #ff3b3f inset;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
    outline: none;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}
.btn-login:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(255,59,63,0.10);
}
.btn-login:hover, .btn-login:focus {
    background: linear-gradient(90deg, #fff 0%, #ffb3b7 100%);
    color: #ff3b3f;
    box-shadow: 0 6px 24px 0 rgba(255,59,63,0.18), 0 1.5px 0 #ff3b3f inset;
    text-decoration: none;
}
.login-footer {
    background: #23272e;
    border-top: 2px solid #222;
    color: #bfc8d6;
    font-size: 15px;
    height: 52px;
    min-height: 52px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.7rem;
}

/* Custom SweetAlert2 progress bar styling (currently injected via JS) */
/*
.swal2-popup {
    position: relative !important;
    overflow: hidden !important;
}
.swal2-timer-progress-bar-container {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    z-index: 10 !important;
    background: transparent !important;
}
.swal2-timer-progress-bar {
    height: 4px !important;
    border-radius: 0 0 4px 4px !important;
    background: linear-gradient(90deg, #ff3b3f 0%, #ff7b7f 100%) !important;
}
*/

@media (max-width: 600px) {
    .login-window {
        max-width: 98vw;
        margin-top: 2vh;
        border-radius: 10px;
        padding: 0;
    }
    .login-form {
        padding: 1.5rem 0.75rem 1.25rem 0.75rem;
        gap: 1rem;
    }
    .login-title {
        font-size: 1.3rem;
    }
    .login-footer {
        font-size: 12px;
        padding: 0 0.5rem;
        height: 40px;
        min-height: 40px;
    }
}
