/* ═══════════════════════════════════════════════
   QA/OBE Login Page Styles
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.qa-login-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: #e8edf8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.qa-login-body input,
body.qa-login-body select,
body.qa-login-body textarea,
body.qa-login-body button {
    font-family: 'Montserrat', sans-serif;
}

/* ── Header ── */
.qa-login-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e9f2;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 1px 4px rgba(37,99,235,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}
.qa-login-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}
.qa-login-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.qa-login-logo-img {
    height: 36px;
    width: 150px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    display: block;
}
.qa-login-hdr-divider {
    width: 1px;
    height: 28px;
    background: #cbd5e1;
    margin: 0 4px;
}
.qa-login-tagline {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.qa-login-hdr-link {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.qa-login-hdr-link:hover { color: #2563eb; }

/* ── Main ── */
.qa-login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.qa-login-card {
    width: 100%;
    max-width: 960px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(37,99,235,0.13);
    display: flex;
    min-height: 520px;
    background: #fff;
}

/* ── Left Panel ── */
.qa-login-left {
    flex: 1.1;
    position: relative;
    background-image: url('/qa_obe/static/src/img/login_bg.png');
    background-size: cover;
    background-position: center bottom;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 32px 36px;
}
.qa-login-left-text-top {
    position: absolute;
    top: 40px;
    left: 32px;
    right: 32px;
    z-index: 3;
    max-width: 78%;
}
.qa-lf-tenant-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 14px;
}
.qa-lf-tenant-badge i {
    font-size: 18px;
    color: #2563eb;
}
.qa-login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(37,99,235,0.18) 0%, rgba(100,130,220,0.08) 60%, transparent 100%);
}
.qa-login-logo-placeholder {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 90px;
    height: 80px;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid #c7d7f5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.qa-login-logo-placeholder i {
    font-size: 26px;
    color: #2563eb;
}
.qa-login-logo-placeholder span {
    font-size: 10px;
    color: #475569;
    text-align: center;
    line-height: 1.3;
}
.qa-login-float-icons {
    position: absolute;
    top: 20px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}
.qa-login-float-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(37,99,235,0.15);
}
.qa-login-float-icon i {
    font-size: 20px;
    color: #2563eb;
}
.qa-fi-2 i { color: #0ea5e9; }
.qa-fi-3 i { color: #6366f1; }

.qa-login-left-text {
    position: relative;
    z-index: 2;
}
.qa-login-left-text h1 {
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.35;
    margin-bottom: 8px;
}
.qa-login-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 10px;
}
.qa-login-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
}

/* ── Right Panel ── */
.qa-login-right {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    padding: 44px 40px 40px;
    display: flex;
    flex-direction: column;
}
.qa-login-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.qa-login-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}
.qa-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Form ── */
.qa-login-form { display: flex; flex-direction: column; gap: 0; }
.qa-lf-group { margin-bottom: 14px; }
.qa-lf-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.qa-lf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.qa-lf-icon {
    position: absolute;
    left: 13px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.qa-lf-arrow {
    position: absolute;
    right: 13px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}
.qa-lf-input, .qa-lf-select {
    width: 100%;
    padding: 10px 13px 10px 36px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.qa-lf-input:focus, .qa-lf-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.qa-lf-select { padding-right: 36px; cursor: pointer; }
.qa-lf-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    padding: 4px;
    line-height: 1;
}
.qa-lf-eye:hover { color: #374151; }
.qa-lf-remember {
    margin-bottom: 18px;
    font-size: 13px;
    color: #374151;
}
.qa-lf-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}
.qa-lf-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
}
.qa-lf-btn-login {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    transition: background 0.2s, transform 0.1s;
}
.qa-lf-btn-login:hover { background: #1d4ed8; }
.qa-lf-btn-login:active { transform: scale(0.99); }
.qa-lf-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}
.qa-lf-links a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}
.qa-lf-links a:hover { text-decoration: underline; }
.qa-lf-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #9ca3af;
}
.qa-lf-or::before, .qa-lf-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.qa-lf-btn-sso {
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid #d1d5db;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.qa-lf-btn-sso:hover { border-color: #2563eb; background: #f0f5ff; color: #2563eb; }

/* ── Footer ── */
.qa-login-footer {
    background: #fff;
    border-top: 1px solid #e5e9f2;
    margin-top: auto;
}
.qa-login-footer-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}
.qa-lf-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.qa-lf-footer-logo i {
    font-size: 24px;
    color: #2563eb;
}
.qa-lf-footer-logo span {
    font-size: 18px;
    font-weight: 900;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}
.qa-lf-footer-logo .qa-brand-inc {
    color: #B8960C;
}
.qa-login-footer-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 4px;
}
.qa-login-footer-content p i {
    width: 16px;
    color: #2563eb;
}
.qa-login-footer-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}
.qa-lf-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.qa-lf-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.qa-lf-social a:hover { opacity: 0.85; transform: scale(1.08); }
.qa-social-f  { background: #1877f2; }
.qa-social-in { background: #0077b5; }
.qa-social-yt { background: #ff0000; }
.qa-social-em { background: #6b7280; }

.qa-login-footer-bar {
    border-top: 1px solid #e5e9f2;
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.qa-login-footer-bar a {
    color: #9ca3af;
    text-decoration: none;
}
.qa-login-footer-bar a:hover { color: #2563eb; text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .qa-login-card { flex-direction: column; }
    .qa-login-left { min-height: 220px; flex: unset; }
    .qa-login-right { width: 100%; padding: 32px 24px; }
    .qa-login-header { padding: 0 16px; }
    .qa-login-tagline { display: none; }
    .qa-login-footer-content { grid-template-columns: 1fr; gap: 24px; }
}
