/* Authentication uses its own layout, mirroring the captured login screen. */
body.qm-auth-body {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrap {
    max-width: 960px;
    width: 100%;
    margin: 1rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    background: #fff;
    display: flex;
    min-height: 560px;
}

/* Brand / promo panel */
.brand-panel {
    flex: 1.1;
    position: relative;
    background: linear-gradient(160deg, #1a3a5c 0%, #2d6a9f 60%, #3f8fc7 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-panel h2 { font-weight: 800; letter-spacing: .5px; }
.brand-panel .lead-sub { opacity: .85; }

.brand-feature {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: .55rem .9rem;
    margin-top: .6rem;
    font-size: .92rem;
    backdrop-filter: blur(2px);
}

.brand-feature i { font-size: 1.1rem; color: #ffd166; }

/* Floating animated icons */
.float-icon {
    position: absolute;
    opacity: .18;
    color: #fff;
    animation: floatY 6s ease-in-out infinite;
}

.float-icon.i1 { font-size: 5rem; top: 6%;  left: 8%;  animation-delay: 0s; }
.float-icon.i2 { font-size: 3.5rem; top: 65%; left: 4%; animation-delay: 1.2s; }
.float-icon.i3 { font-size: 4.5rem; top: 12%; right: 6%; animation-delay: .6s; }
.float-icon.i4 { font-size: 3rem; bottom: 8%; right: 14%; animation-delay: 1.8s; }
.float-icon.i5 { font-size: 2.6rem; bottom: 30%; left: 18%; animation-delay: 2.4s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(6deg); }
}

/* Animated installment progress bar */
.demo-progress {
    margin-top: 1.75rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: .9rem 1rem;
}

.demo-progress .bar-track {
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
    margin-top: .5rem;
}

.demo-progress .bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ffd166, #06d6a0);
    width: 0%;
    animation: fillBar 3.5s ease-in-out infinite;
}

@keyframes fillBar {
    0%   { width: 5%; }
    50%  { width: 75%; }
    85%  { width: 75%; }
    100% { width: 5%; }
}

.demo-progress .pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06d6a0;
    margin-right: 6px;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.4); }
}

/* Login form panel */
.form-panel {
    flex: 1;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel .logo-icon {
    font-size: 2.4rem;
    color: #2d6a9f;
    margin-bottom: .25rem;
}

.password-wrapper { position: relative; }

.password-wrapper .toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
}

.password-wrapper .toggle-pw:focus { outline: none; }

.btn-login {
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: .5px;
    transition: opacity .2s;
}

.btn-login:hover { opacity: .85; color: #fff; }
.btn-login:disabled { opacity: .6; }

@media (max-width: 820px) {
    .login-wrap { flex-direction: column; min-height: auto; }
    .brand-panel { padding: 2rem 1.5rem 1.5rem; }
    .float-icon { display: none; }
}
