*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    background: #f4f5f7;
}

/* ── LEFT PANEL ── */
.lp {
    width: 55%;
    background: #bc0000;
    background: linear-gradient(145deg, #960000 0%, #bc0000 40%, #d01010 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 64px;
    overflow: hidden;
}
.lp::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.06);
    top: -160px; right: -140px;
}
.lp::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 55px solid rgba(255,255,255,.05);
    bottom: -80px; left: -80px;
}
.lp-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 28px 28px;
}
.lp-content { position: relative; z-index: 2; max-width: 440px; }
.lp-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 52px;
}
.lp-logo img { width: 50px; filter: brightness(0) invert(1); }
.lp-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.3;
}
.lp-tagline {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 18px;
}
.lp-sub {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 48px;
}
.lp-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}
.lp-badge i { font-size: 14px; }

/* ── RIGHT PANEL ── */
.rp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}
.login-card {
    width: 100%;
    max-width: 420px;
}
.login-card-head {
    margin-bottom: 36px;
}
.login-card-head h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}
.login-card-head p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Form */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}
.form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    border-color: #bc0000;
    box-shadow: 0 0 0 3px rgba(188,0,0,.12);
    outline: none;
}
.form-control.is-invalid {
    border-color: #e53e3e;
    background-image: none;
}
.input-group-icon {
    position: relative;
}
.input-group-icon .form-control {
    padding-left: 44px;
}
.input-group-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}
.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}
.pw-toggle:hover { color: #4a5568; }

.btn-login {
    width: 100%;
    padding: 13px;
    background: #bc0000;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(188,0,0,.3);
}
.btn-login:hover {
    background: #960000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(188,0,0,.4);
}
.btn-login:active { transform: translateY(0); }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #cbd5e0;
    font-size: 12px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.quick-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-link {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.quick-link:hover {
    border-color: #bc0000;
    color: #bc0000;
    background: rgba(188,0,0,.04);
}
.quick-link i { font-size: 15px; }

.login-footer {
    margin-top: 36px;
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
}
.login-footer a { color: #bc0000; text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

/* Alert */
.alert-err {
    background: #fff5f5;
    border: 1.5px solid #fed7d7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #c53030;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert-err i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .lp {
        width: 100%;
        padding: 36px 28px;
        min-height: auto;
    }
    .lp-tagline { font-size: 1.4rem; }
    .lp-badges { display: none; }
    .lp-sub { margin-bottom: 0; font-size: 13px; }
    .lp-logo { margin-bottom: 28px; }
    .rp { padding: 36px 24px; }
}
@media (max-width: 400px) {
    .lp { padding: 28px 20px; }
    .rp { padding: 28px 16px; }
}
