/* ============================================================
   SIGMA — Public Polish (home + login), loaded last
   Unify font (Inter) + color + mobile refinement.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --sigma-green: #2b6cb0;
    --sigma-green-dark: #1c4d80;
}

body,
.home,
.auth-layout,
button,
input,
select,
textarea,
.btn,
.button,
.submit-button,
.form-field input,
.main-nav a,
.brand-name strong {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

/* Consistent primary buttons */
.button-primary,
.submit-button {
    background: var(--sigma-green-dark) !important;
}
.button-primary:hover,
.submit-button:hover {
    background: var(--sigma-green) !important;
}

/* Login card / auth card radius consistency */
.login-card,
.auth-card {
    border-radius: 18px !important;
}

/* ============================================================
   MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Prevent iOS auto-zoom */
    .form-field input,
    .auth-card input,
    .login-card input {
        font-size: 16px !important;
        min-height: 50px !important;
    }
    .form-field label { font-size: 13px !important; }

    /* Shell gutters */
    .sigma-shell {
        width: calc(100% - 28px) !important;
    }

    /* Header */
    .header-inner { min-height: 62px !important; gap: 12px !important; }
    .brand img { width: 38px !important; height: 38px !important; }
    .brand-name strong { font-size: 15px !important; }
    .brand-name small { font-size: 9px !important; }
    .main-nav { display: none !important; }

    /* Hero */
    .hero { min-height: auto !important; }
    .hero-content { padding: 56px 18px 80px !important; }
    .hero-title { font-size: clamp(30px, 8vw, 44px) !important; letter-spacing: -.03em !important; }
    .hero-description { font-size: 14px !important; line-height: 1.7 !important; }
    .hero-actions { flex-direction: column !important; gap: 10px !important; }
    .hero-actions .button,
    .hero-actions .button-primary,
    .hero-actions .button-ghost { width: 100% !important; }
    .hero-meta { flex-direction: column !important; gap: 14px !important; padding-top: 22px !important; }
    .hero-meta strong { font-size: 15px !important; }
    .hero-scroll { display: none !important; }

    /* Login section */
    .login-section { padding: 44px 0 56px !important; }
    .login-inner { grid-template-columns: 1fr !important; gap: 26px !important; }
    .login-copy h2 { font-size: clamp(24px, 6vw, 32px) !important; }
    .login-card { width: 100% !important; padding: 28px 20px !important; justify-self: stretch !important; }
    .submit-button { width: 100% !important; }

    /* About */
    .about-section { padding: 56px 0 64px !important; }
    .section-heading h2 { font-size: clamp(24px, 6vw, 32px) !important; }
    .about-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .about-card { padding: 26px 22px !important; }
    .about-card h3 { font-size: 18px !important; }

    /* Auth (standalone login) */
    .auth-layout { flex-direction: column !important; }
    .identity-panel { display: none !important; }
    .auth-main { padding: 24px 16px !important; width: 100% !important; }
    .auth-card { width: 100% !important; max-width: 460px !important; margin: 0 auto !important; padding: 26px 20px !important; }
    .card-heading h2 { font-size: 22px !important; }
    .back-link { font-size: 13px !important; }

    /* Footer */
    .footer-inner { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .footer-inner .footer-office { margin-left: 0 !important; }

    /* Alerts */
    .alert { font-size: 13px !important; padding: 12px 14px !important; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 28px !important; }
    .login-card { padding: 24px 16px !important; }
}