* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    display: flex;
    background: #0d6efd;
}

/* ── Left branding panel ── */
.login-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-logo {
    max-height: 80px;
}

.login-brand-content .tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.bg-img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 60vh;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* ── Right form panel ── */
.login-form-panel {
    width: 420px;
    min-width: 320px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: -8px 0 32px rgba(0,0,0,0.18);
}

.login-form-panel h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.login-form-panel .subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-form-panel .logo-wrap {
    margin-bottom: 2rem;
}

.login-form-panel .logo-wrap img {
    max-height: 48px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495057;
    margin-bottom: 0.3rem;
}

.form-control {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.btn-login {
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-login:hover {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-1px);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #6c757d;
    font-size: 0.88rem;
}

.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0d6efd;
}

.login-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .login-brand { min-height: 200px; flex: none; align-items: center; padding: 2rem; }
    .login-form-panel { width: 100%; box-shadow: none; }
    .bg-img { height: 90%; }
}
