/* Login (split layout, matches the KPI portal pattern) + first-run setup page */

html, body { height: 100%; margin: 0; }

.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.visual-pane {
    width: 50%;
    height: 100vh;
    background-image: url('https://mohmfurniture.com/uploads/WhatsApp%20Image%202026-02-01%20at%205.25.22%20PM.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.visual-pane::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(206,17,65,0.2));
}
.visual-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 40px;
    z-index: 2;
    color: #fff;
}
.visual-content .brand-logo {
    width: 150px;
    margin-bottom: 30px;
    display: block;
    filter: brightness(0) invert(1);
}
.visual-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 0 14px;
    color: #fff;
}
.visual-content p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.form-pane {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.form-wrapper { width: 100%; max-width: 400px; padding: 40px; animation: auth-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title { font-family: var(--font-display); font-size: 2rem; color: var(--mohm-dark); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 0.95rem; color: var(--mohm-grey); margin-bottom: 34px; }

.form-group { margin-bottom: 20px; }
.form-label { font-weight: 600; color: var(--mohm-grey); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; display: block; margin-bottom: 7px; }
.form-control {
    border: 1.5px solid #e6e6e6;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    color: var(--mohm-dark);
    outline: none;
    font-family: var(--font-body);
}
.form-control:hover { border-color: #d4d4d4; }
.form-control:focus {
    border-color: var(--mohm-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(206, 17, 65, 0.08);
}

.btn-submit {
    background: var(--mohm-red);
    color: #fff;
    padding: 15px 10px;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.8px;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 14px;
    border-radius: 10px;
}
.btn-submit:hover { background: #b00c34; box-shadow: 0 10px 24px rgba(206,17,65,0.25); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(206,17,65,0.2); }

.error-box {
    background: #fdf2f4;
    color: var(--mohm-red);
    padding: 13px 16px;
    border: 1px solid rgba(206, 17, 65, 0.15);
    border-left: 4px solid var(--mohm-red);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 22px;
    border-radius: 8px;
    animation: auth-rise 0.3s ease;
}

@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    .visual-pane { width: 100%; height: 32vh; min-height: 220px; }
    .visual-content { bottom: 20px; left: 20px; right: 20px; }
    .visual-content h1 { font-size: 1.7rem; }
    .visual-content p { display: none; }
    .form-pane { width: 100%; padding: 30px 16px; }
}

/* ---- First-run setup page (simpler centered card, not split) ---- */
.auth-body { background: var(--paper); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-wrapper { width: 100%; padding: 24px; display: flex; justify-content: center; }
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px;
}
.auth-logo { width: 120px; margin-bottom: 22px; }
.auth-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--mohm-dark); margin: 0 0 6px; }
.auth-subtitle { font-size: 0.9rem; color: var(--mohm-grey); margin-bottom: 26px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }

.form-wrapper .app-footer, .auth-card .app-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
    color: var(--ink-faint);
}
