/* ═══════════════════════════════════════════════════════════════════════
 * Saving Mantra — Unified split-screen login layout
 * Shared across: Admin (Office) / Employee / Partner / Advisor / Service Provider
 * ═══════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

body.sm-login {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background: #eef2f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1f2937;
}

.sm-topbar {
    background: #fff;
    padding: 14px 32px;
    box-shadow: 0 1px 0 #e5e7eb;
    display: flex;
    align-items: center;
}
.sm-topbar img { height: 38px; width: auto; display: block; }

.sm-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 16px;
}

.sm-split-card {
    width: 100%;
    max-width: 980px;
    min-height: 540px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 52, 96, 0.18);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ── LEFT PANE (branding / features) ────────────────────────────────── */
.sm-left {
    background: linear-gradient(135deg, #163a6b 0%, #1d4a85 50%, #2563a8 100%);
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sm-left::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.sm-left h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}
.sm-left h2 .accent {
    color: #ff8a5b;
    display: block;
}
.sm-left .sm-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    position: relative;
    z-index: 1;
}
.sm-left .sm-features li {
    display: flex;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.5;
}
.sm-left .sm-features li::before {
    content: '●';
    color: #ff8a5b;
    margin-right: 12px;
    font-size: 10px;
    line-height: 22px;
    flex-shrink: 0;
}
.sm-left .sm-trust {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.sm-left .sm-trust .pill {
    background: #ff8a5b;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ── RIGHT PANE (form) ──────────────────────────────────────────────── */
.sm-right {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sm-right h3 {
    font-size: 22px;
    color: #1f2937;
    margin: 0 0 6px;
    font-weight: 700;
}
.sm-right .sm-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.sm-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 22px;
}
.sm-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}
.sm-tabs a.active {
    color: #1d4a85;
    border-bottom-color: #1d4a85;
}
.sm-tabs a:hover:not(.active) { color: #4b5563; }

.sm-fg { margin-bottom: 16px; }
.sm-fg label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.sm-fg input,
.sm-fg .sm-mobile-wrap {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
}
.sm-fg input:focus {
    border-color: #2563a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}
.sm-fg .sm-mobile-wrap {
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.sm-fg .sm-mobile-wrap .cc {
    background: #f3f4f6;
    color: #4b5563;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #d1d5db;
}
.sm-fg .sm-mobile-wrap input {
    border: none;
    flex: 1;
    border-radius: 0;
    padding: 11px 14px;
}
.sm-fg .sm-mobile-wrap input:focus { box-shadow: none; }

.sm-hint { font-size: 12px; color: #6b7280; margin-top: 6px; }

.sm-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #1d4a85, #2563a8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: filter 0.15s, transform 0.05s;
}
.sm-btn:hover { filter: brightness(1.08); }
.sm-btn:active { transform: translateY(1px); }
.sm-btn.sm-btn-secondary {
    background: #fff;
    color: #1d4a85;
    border: 1.5px solid #1d4a85;
    margin-top: 10px;
}
.sm-btn.sm-btn-secondary:hover { background: #f3f6fb; filter: none; }

.sm-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.sm-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.sm-alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.sm-foot-links {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 18px;
}
.sm-foot-links a {
    color: #1d4a85;
    text-decoration: none;
    font-weight: 600;
}
.sm-foot-links a:hover { text-decoration: underline; }

.sm-copy {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    padding: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .sm-split-card { grid-template-columns: 1fr; min-height: auto; }
    .sm-left { padding: 32px 28px; }
    .sm-right { padding: 36px 28px; }
    .sm-left h2 { font-size: 24px; }
    .sm-topbar { padding: 12px 20px; }
}
