.login-page-bg {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f6f8fc;
    overflow-x: hidden;
}

.login-page-bg.auth-full-height {
    height: auto;
}

.login-shell {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
    overflow: hidden;
    background: #ffffff;
}

.login-brand-panel {
    position: relative;
    min-height: 520px;
    justify-content: center;
    background-image:
        linear-gradient(140deg, rgba(42, 11, 7, 0.96) 0%, rgba(124, 29, 10, 0.94) 45%, rgba(220, 56, 20, 0.9) 100%),
        url('../images/others/bg-2.jpg');
    background-size: cover;
    background-position: center;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 11, 7, 0.10) 0%, rgba(42, 11, 7, 0.30) 100%);
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.login-brand-logo {
    height: 34px;
}

.login-brand-content .logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-form-wrap {
    max-width: 390px;
}

.login-form-wrap h3 {
    font-weight: 700;
    color: #1b2559;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.form-label {
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 0.45rem;
}

.login-shell .form-control {
    border-radius: 10px;
    border-color: #d9e1f2;
    background-color: #fff;
    color: #1e293b;
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-shell .form-control::placeholder {
    color: #94a3b8;
}

.login-shell .form-control:focus {
    border-color: #5c7cfa;
    box-shadow: 0 0 0 0.2rem rgba(92, 124, 250, 0.18);
    background-color: #fff;
    color: #1e293b;
}

.login-shell .btn-primary {
    background-image: linear-gradient(135deg, #b92e10 0%, #dc3814 100%);
    border: none;
    border-radius: 10px;
    min-height: 44px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(220, 56, 20, 0.28);
}

.login-shell .btn-primary:hover,
.login-shell .btn-primary:focus,
.login-shell .btn-primary:active {
    background-image: linear-gradient(135deg, #a3280e 0%, #c3310f 100%);
    border: none;
}

.login-shell .btn-secondary {
    background-image: linear-gradient(135deg, #b92e10 0%, #dc3814 100%) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px;
    min-height: 44px;
    font-weight: 600;
}

.login-shell .btn-secondary:hover,
.login-shell .btn-secondary:focus,
.login-shell .btn-secondary:active {
    background-image: linear-gradient(135deg, #a3280e 0%, #c3310f 100%) !important;
    border: none !important;
    color: #fff !important;
}

.forgot-link {
    font-size: 0.86rem;
    color: #3157e0;
    font-weight: 500;
}

.remember-label {
    font-size: 0.91rem;
    color: #334155;
    cursor: pointer;
}

.divider {
    margin-top: 1rem;
}

.login-error-code {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background-image: linear-gradient(135deg, #b92e10 0%, #dc3814 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.9rem;
}

@media (max-width: 767px) {
    .login-brand-panel {
        min-height: 0;
    }

    .login-page-bg > .row {
        padding: 16px 0;
    }

    .login-page-bg > .row > [class*="col-"] {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.login-logo {
    height: 34px;
}

.auth-logo-shift {
    height: 34px;
}

.auth-form-narrow {
    max-width: 350px;
}

.two-factor-form-wrap {
    max-width: 400px;
}

.auth-bg-2 {
    background-image: url('../images/others/bg-2.jpg');
}

.auth-bg-3 {
    background-image: url('../images/others/bg-3.jpg');
}

.login-forgot-info {
    font-size: 0.82rem;
}

.cursor-pointer {
    cursor: pointer;
}

.otp-input {
    letter-spacing: 8px;
    font-size: 1.5rem;
}

.resend-countdown {
    align-items: center;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.is-waiting {
    opacity: 0.6;
}

.trust-browser-label {
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}
