/* File: assets/css/main.css */
/* SHAAFIHOST — Public & Auth Pages Stylesheet (White / Blue / Green Theme) */

:root {
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --blue-light: #EFF4FF;
    --green: #16A34A;
    --green-dark: #15803D;
    --green-light: #ECFDF3;
    --ink: #0F172A;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
    border: none; cursor: pointer; text-decoration: none; transition: all 0.2s ease;
    font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Top Navigation (public) ────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.brand .brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.94rem; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
    position: relative; overflow: hidden;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green-light);
    color: var(--green-dark); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.82rem;
    font-weight: 700; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--ink); line-height: 1.15; max-width: 750px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 1.4rem 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

/* ── Feature Cards ───────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head .eyebrow { color: var(--green); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); margin-top: 0.5rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; transition: all 0.25s ease;
}
.feature-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); color: var(--blue);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--ink) 0%, #16233F 100%); border-radius: 24px;
    padding: 3.5rem 2.5rem; text-align: center; color: #fff; margin: 0 1.5rem;
}
.cta-band h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--surface-soft); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; }
.auth-brand-panel {
    flex: 1; background: linear-gradient(160deg, var(--ink) 0%, #16233F 100%); position: relative;
    overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 4rem; color: #fff;
}
.auth-brand-panel::before {
    content: ''; position: absolute; top: -100px; right: -100px; width: 320px; height: 320px;
    background: rgba(37, 99, 235, 0.35); border-radius: 50%;
}
.auth-brand-panel::after {
    content: ''; position: absolute; bottom: -80px; left: -60px; width: 240px; height: 240px;
    background: rgba(22, 163, 74, 0.3); border-radius: 50%;
}
.auth-brand-content { position: relative; z-index: 1; max-width: 420px; }
.auth-brand-content h2 { font-size: 1.9rem; font-weight: 800; line-height: 1.35; margin: 2rem 0 1rem; }
.auth-brand-content p { color: rgba(255,255,255,0.65); font-size: 0.97rem; }
.auth-point { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.auth-point .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box { width: 100%; max-width: 420px; }
.auth-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 0.35rem; }
.auth-subtitle { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.8rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.form-label .opt-link { float: right; font-weight: 600; color: var(--blue); font-size: 0.82rem; }
.input-wrap { position: relative; }
.input-wrap i.field-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.form-input {
    width: 100%; padding: 0.78rem 1rem 0.78rem 2.7rem; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface-soft); outline: none; transition: all 0.2s;
}
.form-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-light); }
.toggle-pw { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted); cursor: pointer; }

.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.83rem; color: var(--muted); }
.auth-footer-note { text-align: center; font-size: 0.9rem; color: var(--muted); }
.auth-footer-note a { font-weight: 700; }

.alert { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.88rem; margin-bottom: 1.2rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert-error { background: var(--danger-light); border: 1px solid #FECACA; color: #B91C1C; }
.alert-success { background: var(--green-light); border: 1px solid #BBF7D0; color: var(--green-dark); }
.alert-info { background: var(--blue-light); border: 1px solid #BFDBFE; color: var(--blue-dark); }

@media (max-width: 900px) { .auth-brand-panel { display: none; } }