/* ============================================================
   SÉNÉGAL BUSINESS MANAGER — Mobile Auth & Welcome Styling
   Modern, Ultra-clean, Senegal-inspired Mobile Experience
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --sbm-green: #0B4624;
    --sbm-green-dark: #07381C;
    --sbm-green-light: #0F5E30;
    --sbm-green-glow: rgba(11, 70, 36, 0.18);
    --sbm-sn-green: #00853F;
    --sbm-sn-yellow: #F59E0B;
    --sbm-sn-red: #E31B23;
    
    --sbm-text-heading: #0A4325;
    --sbm-text-body: #1E293B;
    --sbm-text-muted: #475569;
    --sbm-text-light: #64748B;
    
    --sbm-border-input: #94A3B8;
    --sbm-border-focus: #0B4624;
    --sbm-bg-input: #FFFFFF;
    
    --sbm-radius-pill: 9999px;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F8FAF6;
    color: var(--sbm-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 12px;
    background-image: 
        radial-gradient(circle at 92% 8%, rgba(22, 163, 74, 0.16) 0%, rgba(22, 163, 74, 0.03) 42%, transparent 70%),
        radial-gradient(circle at 8% 92%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.03) 42%, transparent 70%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ── PHONE FRAME (Desktop Mockup) ── */
.sbm-phone-container {
    width: 100%;
    max-width: 412px;
    min-height: 844px;
    background: #FAFCF8;
    background-image:
        radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.13) 0%, transparent 45%),
        radial-gradient(circle at 12% 90%, rgba(16, 185, 129, 0.14) 0%, transparent 45%);
    border-radius: 50px;
    border: 11px solid #1C242E;
    box-shadow: 
        0 25px 70px -15px rgba(0, 0, 0, 0.28),
        0 0 0 1.5px rgba(255, 255, 255, 0.18) inset,
        0 12px 36px rgba(11, 70, 36, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

/* ── DYNAMIC ISLAND & NOTCH (iOS style) ── */
.sbm-notch-area {
    width: 100%;
    padding: 12px 24px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    user-select: none;
}

.sbm-status-time {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.sbm-dynamic-island {
    width: 82px;
    height: 25px;
    background: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sbm-camera-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #111e2b;
    border: 1px solid #1a2c3d;
}

.sbm-status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0F172A;
    font-size: 12px;
}

/* ── SCREEN CONTENT ── */
.sbm-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 26px 20px;
    overflow-y: auto;
    scrollbar-width: none;
}
.sbm-screen-content::-webkit-scrollbar {
    display: none;
}

/* ── LOGO ── */
.sbm-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 14px;
}

.sbm-brand-logo {
    width: 155px;
    height: auto;
    max-height: 105px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.2s ease;
}

/* ── HEADINGS & TEXT ── */
.sbm-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--sbm-text-heading);
    text-align: center;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.sbm-page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sbm-text-heading);
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.sbm-page-subtitle {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sbm-text-muted);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 22px;
}

.sbm-lead-text {
    font-size: 15px;
    line-height: 1.45;
    color: #1E293B;
    text-align: center;
    margin-bottom: 12px;
}
.sbm-lead-text strong {
    font-weight: 800;
    color: #0F172A;
}

.sbm-lead-subtext {
    font-size: 14px;
    line-height: 1.4;
    color: var(--sbm-text-muted);
    text-align: center;
    margin-bottom: 30px;
}

/* ── FORM ELEMENTS ── */
.sbm-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sbm-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sbm-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
    margin-left: 4px;
}

.sbm-pill-input {
    display: flex;
    align-items: center;
    background: var(--sbm-bg-input);
    border: 1.5px solid var(--sbm-border-input);
    border-radius: var(--sbm-radius-pill);
    height: 50px;
    padding: 0 18px;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sbm-pill-input:focus-within {
    border-color: var(--sbm-green);
    box-shadow: 0 0 0 3px var(--sbm-green-glow);
}

.sbm-pill-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--sbm-text-body);
}

.sbm-pill-input input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.sbm-input-icon {
    font-size: 15px;
    color: #64748B;
    flex-shrink: 0;
}

.sbm-prefix-code {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    flex-shrink: 0;
}

.sbm-input-sep {
    width: 1px;
    height: 20px;
    background: #CBD5E1;
    margin: 0 2px;
    flex-shrink: 0;
}

.sbm-flag-mini-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-toggle-eye {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.btn-toggle-eye:hover {
    color: #0F172A;
}

/* ── FORGOT PASSWORD ── */
.sbm-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 8px;
}

.sbm-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--sbm-green);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.sbm-forgot-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ── CHECKBOX TERMS ── */
.sbm-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 4px 6px;
    cursor: pointer;
}

.sbm-terms-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--sbm-green);
    cursor: pointer;
    flex-shrink: 0;
}

.sbm-terms-text {
    font-size: 12px;
    line-height: 1.38;
    color: #475569;
}
.sbm-terms-text a {
    color: var(--sbm-green);
    font-weight: 600;
    text-decoration: none;
}
.sbm-terms-text a:hover {
    text-decoration: underline;
}

/* ── BUTTONS ── */
.sbm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border-radius: var(--sbm-radius-pill);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    border: none;
}

.sbm-btn-solid {
    background: var(--sbm-green);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(11, 70, 36, 0.28);
}
.sbm-btn-solid:hover {
    background: var(--sbm-green-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(11, 70, 36, 0.35);
    color: #FFFFFF;
}
.sbm-btn-solid:active {
    transform: translateY(0);
    background: var(--sbm-green-dark);
}

.sbm-btn-outline {
    background: transparent;
    border: 1.5px solid var(--sbm-green);
    color: var(--sbm-green);
}
.sbm-btn-outline:hover {
    background: rgba(11, 70, 36, 0.05);
    color: var(--sbm-green);
}
.sbm-btn-outline:active {
    background: rgba(11, 70, 36, 0.10);
}

/* ── ACTIONS STACK (Welcome screen) ── */
.sbm-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
    margin-bottom: 24px;
}

/* ── DIVIDER 'OU' ── */
.sbm-divider-ou {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.sbm-divider-ou::before,
.sbm-divider-ou::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #CBD5E1;
}

.sbm-divider-ou span {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.5px;
}

/* ── VISITOR LINK ── */
.sbm-visitor-wrap {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 12px;
}

.sbm-visitor-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #1F2937;
    text-decoration: underline;
    transition: color 0.15s ease;
}
.sbm-visitor-link:hover {
    color: var(--sbm-green);
}

/* ── FOOTER & HELP ── */
.sbm-footer-area {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
}

.sbm-help-link {
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}
.sbm-help-link:hover {
    color: var(--sbm-green);
    text-decoration: underline;
}

.sbm-bottom-account-link {
    text-align: center;
    font-size: 13.5px;
    color: #1F2937;
    margin-top: 14px;
    margin-bottom: 6px;
}
.sbm-bottom-account-link a {
    color: var(--sbm-green);
    font-weight: 700;
    text-decoration: none;
}
.sbm-bottom-account-link a:hover {
    text-decoration: underline;
}

/* ── SENEGAL FLAG 3-DOTS ── */
.sbm-flag-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.sbm-flag-dot {
    width: 15px;
    height: 3.5px;
    border-radius: 2px;
}

.sbm-flag-dot.dot-green {
    background-color: var(--sbm-sn-green);
}

.sbm-flag-dot.dot-yellow {
    background-color: var(--sbm-sn-yellow);
}

.sbm-flag-dot.dot-red {
    background-color: var(--sbm-sn-red);
}

/* ── HOME INDICATOR BAR (iOS) ── */
.sbm-home-bar-area {
    width: 100%;
    padding: 8px 0 10px;
    display: flex;
    justify-content: center;
    z-index: 50;
}

.sbm-home-bar {
    width: 134px;
    height: 4.5px;
    background: #0F172A;
    border-radius: 9999px;
    opacity: 0.85;
}

/* ── ALERTS / ERRORS ── */
.sbm-alert {
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sbm-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.sbm-alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

/* ── RESPONSIVE MOBILE ADAPTATION ── */
@media (max-width: 480px) {
    body {
        padding: 0;
        background: #FAFCF8;
        background-image:
            radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.13) 0%, transparent 45%),
            radial-gradient(circle at 12% 90%, rgba(16, 185, 129, 0.14) 0%, transparent 45%);
    }

    .sbm-phone-container {
        max-width: 100%;
        min-height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .sbm-notch-area {
        display: none;
    }

    .sbm-home-bar-area {
        display: none;
    }

    .sbm-screen-content {
        padding: 24px 20px 24px;
    }

    .sbm-brand-logo {
        width: 145px;
    }

    .sbm-hero-title {
        font-size: 24px;
    }
}
