/* ============================================================
   register.css - styles for public/register.php
   Extracted from an inline <style> block so this page look can
   be edited without touching PHP. Loaded alongside theme.css
   (shared design tokens/palette).
   ============================================================ */

        /* Color tokens now come from theme.css (--brand-navy, --brand-cream, --brand-ochre,
           --bg-primary, --text-primary, --text-muted, --border-glass, --accent-1..5) */
        * { box-sizing: border-box; }
        body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); display: flex; overflow-x: hidden; }
        .bg-blob { display: none; }
        .auth-shell { display: flex; width: 100%; min-height: 100vh; min-height: 100dvh; }
        .brand-panel { width: 44%; min-width: 25rem; background: var(--brand-navy); color: var(--brand-cream); position: relative; display: flex; flex-direction: column; }
        .tibeb-strip { width: 100%; height: 1.125rem; flex-shrink: 0; display: block; }
        .brand-panel-inner { padding: 1.875rem 2.5rem 1.875rem; display: flex; flex-direction: column; flex: 1; }
        .brand-row { display: flex; align-items: center; gap: 0.625rem; }
        .brand-row .word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3125rem; letter-spacing: 0.5px; }
        .brand-eyebrow { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: max(0.7188rem, var(--fs-min, 11px)); letter-spacing: 0.1562rem; text-transform: uppercase; color: var(--brand-ochre); margin-top: 0.75rem; }
        .brand-amh { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: max(0.8438rem, var(--fs-min, 11px)); opacity: 0.85; margin-top: 0.25rem; }
        .ship-wrap { margin: 0.625rem auto; width: min(14.375rem, 75%); }
        .feature-list { margin-top: auto; padding-top: 0.875rem; }
        .feature-item { display: flex; gap: 0.75rem; margin-bottom: 0.8125rem; }
        .feature-item .dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--brand-ochre); margin-top: 0.4375rem; flex-shrink: 0; }
        .feature-item b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: max(0.8438rem, var(--fs-min, 11px)); font-weight: 700; }
        .feature-item span { font-size: max(0.75rem, var(--fs-min, 11px)); color: rgba(248,244,238,0.68); }

        .form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; position: relative; overflow-y: auto; }
        .form-card { width: 100%; max-width: 26.25rem; }
        .mobile-brand { display: none; }
        h4.form-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem; margin: 0 0 0.25rem; color: var(--brand-navy); text-align: center; }
        .dark-theme h4.form-title { color: var(--brand-cream); }
        .form-subtitle { color: var(--text-muted); font-size: max(0.8438rem, var(--fs-min, 11px)); margin-bottom: 1rem; text-align: center; }

        .plan-badge { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--border-glass); color: var(--brand-navy); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: max(0.7rem, var(--fs-min, 11px)); letter-spacing: 0.5px; text-transform: uppercase; padding: 0.3125rem 0.875rem; border-radius: 1.875rem; margin-bottom: 0.875rem; }
        .plan-badge.pro { background: var(--brand-ochre); color: #fff; }

        .form-label { color: var(--text-primary); font-size: max(0.83rem, var(--fs-min, 11px)); font-weight: 600; margin-bottom: 0.3125rem; }
        .form-control { background: #fff; border: 1.5px solid var(--border-glass); color: var(--text-primary); border-radius: 0.75rem; padding: 0.6875rem 0.9375rem; font-size: max(0.92rem, var(--fs-min, 11px)); transition: 0.15s; }
        .dark-theme .form-control { background: #182528; }
        .form-control:focus { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(11,46,51,0.12); background: #fff; color: var(--text-primary); }
        .dark-theme .form-control:focus { background: #182528; box-shadow: 0 0 0 3px rgba(20, 145, 127,0.18); border-color: var(--brand-ochre); }
        .form-control::placeholder { color: #a9b6b7; }

        .form-check-input { border: 1.5px solid var(--border-glass); }
        .form-check-input:checked { background-color: var(--brand-navy); border-color: var(--brand-navy); }
        .form-check-label { color: var(--text-muted); font-size: max(0.8rem, var(--fs-min, 11px)); }

        .btn-register { width: 100%; padding: 0.75rem; border: none; border-radius: 0.75rem; background: var(--brand-navy); color: var(--brand-cream); font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: max(0.93rem, var(--fs-min, 11px)); transition: 0.15s; }
        .btn-register:hover { background: var(--brand-navy-2); color: var(--brand-cream); }
        .btn-register:disabled { opacity: 0.5; cursor: not-allowed; }

        .btn-google { width: 100%; padding: 0.6875rem; border-radius: 0.75rem; background: #fff; border: 1.5px solid var(--border-glass); color: var(--text-primary); font-weight: 500; font-size: max(0.88rem, var(--fs-min, 11px)); display: flex; align-items: center; justify-content: center; gap: 0.625rem; text-decoration: none; transition: 0.15s; }
        .dark-theme .btn-google { background: #182528; color: var(--text-primary); }
        .btn-google:hover { border-color: var(--brand-navy); color: var(--text-primary); }

        .divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--text-muted); font-size: max(0.72rem, var(--fs-min, 11px)); text-transform: uppercase; letter-spacing: 1px; }
        .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-glass); }

        .error { background: rgba(192,68,44,0.08); border: 1px solid rgba(192,68,44,0.3); color: var(--accent-5); padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-size: max(0.83rem, var(--fs-min, 11px)); margin-bottom: 0.875rem; }
        .success { background: rgba(46,125,70,0.08); border: 1px solid rgba(46,125,70,0.3); color: var(--accent-4); padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-size: max(0.83rem, var(--fs-min, 11px)); margin-bottom: 0.875rem; }
        .info-box { background: rgba(20, 145, 127,0.1); border: 1px solid rgba(20, 145, 127,0.3); color: #8a5518; padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-size: max(0.78rem, var(--fs-min, 11px)); margin-bottom: 1rem; }
        .dark-theme .info-box { color: #e0ab6f; }

        .password-strength { height: 0.3125rem; border-radius: 0.1875rem; background: var(--border-glass); margin-top: 0.5rem; overflow: hidden; }
        .password-strength .bar { height: 100%; width: 0; background: var(--accent-5); transition: 0.25s; }
        .strength-text { font-size: max(0.72rem, var(--fs-min, 11px)); margin-top: 0.1875rem; color: var(--text-muted); font-weight: 600; }

        .theme-toggle-wrapper { position: fixed; top: 1.25rem; right: 1.375rem; z-index: 9999; display: flex; align-items: center; gap: 0.625rem; background: #fff; padding: 0.5rem 0.875rem 0.5rem 0.75rem; border-radius: 2.5rem; border: 1px solid var(--border-glass); box-shadow: 0 8px 24px -12px rgba(11,46,51,0.25); }
        .dark-theme .theme-toggle-wrapper { background: #182528; }
        .theme-toggle { position: relative; width: 2.75rem; height: 1.5rem; background: var(--border-glass); border-radius: 2.5rem; cursor: pointer; flex-shrink: 0; }
        .theme-toggle .dot { position: absolute; top: 2px; left: 2px; width: 1.25rem; height: 1.25rem; background: var(--brand-navy); border-radius: 50%; transition: transform 0.25s; }
        .dark-theme .theme-toggle .dot { transform: translateX(20px); background: var(--brand-ochre); }
        .theme-label { font-size: max(0.68rem, var(--fs-min, 11px)); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

        .back-home { position: absolute; top: 1.25rem; left: 1.375rem; font-size: max(0.8rem, var(--fs-min, 11px)); color: var(--text-muted); text-decoration: none; display:flex; align-items:center; gap:0.375rem; z-index: 5;}
        .back-home:hover { color: var(--accent-2); }

        @media (max-width: 980px) {
            .brand-panel { display: none; }
            .mobile-brand { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin-bottom: 1.125rem; }
            .mobile-brand .word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1875rem; color: var(--brand-navy); }
            .dark-theme .mobile-brand .word { color: var(--brand-cream); }
        }
        @media (max-width: 480px) {
            .form-panel { padding: 4rem 1rem 1.875rem; }
            h4.form-title { font-size: 1.3125rem; }
        }

/* ---- Compact mode for short screens: keep the form on ONE screen ---- */
@media (max-height: 820px) {
    .form-panel { padding-top: 1rem; padding-bottom: 1rem; }
    .form-panel .mb-3 { margin-bottom: 0.55rem !important; }
    .form-panel .mb-4 { margin-bottom: 0.75rem !important; }
    .form-panel .form-control { padding-top: 0.45rem; padding-bottom: 0.45rem; }
    .form-panel .divider { margin: 0.6rem 0; }
    .form-panel .form-subtitle { margin-bottom: 0.7rem; }
    .mobile-brand { margin-bottom: 0.6rem; }
}
@media (max-width: 991.98px) and (max-height: 820px) {
    .form-panel { padding-top: 3.25rem; }
}
.dark-theme .plan-badge { background: rgba(46,184,166,.16); color: #9DE5DA; }
.dark-theme .plan-badge.pro { background: #2EB8A6; color: #04221F; }
