:root{
  --mc-blue:#2d50d7;
  --mc-blue-dark:#243fb0;
  --mc-bg:#f5f7fb;
  --mc-text:#0f172a;
  --mc-muted:#6b7280;
  --radius:16px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;background:var(--mc-bg);color:var(--mc-text);}
a{color:var(--mc-blue);text-decoration:none}
a:hover{color:var(--mc-blue-dark)}
.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}
.brand-panel{position:relative;background:linear-gradient(135deg,#1a39a8 0%, #2d50d7 50%, #6a7cf8 100%);color:#fff;display:flex;align-items:center;justify-content:center;padding:48px}
.brand-overlay{max-width:520px}
.brand-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.brand-logo{height:40px}
.brand-copy h2{font-size:32px;line-height:1.2;margin:0 0 8px}
.brand-copy p{margin:0;color:#e6e9ff}
.brand-footer{margin-top:32px}
.brand-footer .whatsapp{display:inline-flex;gap:8px;align-items:center;background:#25D366;color:#083b16;padding:10px 14px;border-radius:999px;font-weight:600}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:32px}
.auth-card{width:100%;max-width:460px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:28px}
.auth-header{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.auth-logo{height:28px}
.auth-header h2{margin:0 0 4px}
.auth-header p{margin:0;color:var(--mc-muted)}
.form-group{margin:16px 0}
.form-group label{display:block;margin-bottom:6px;font-weight:600}
.form-group input{width:100%;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;outline:0}
.form-group input:focus{border-color:var(--mc-blue);box-shadow:0 0 0 3px rgba(45,80,215,.15)}
.password-field{display:flex;align-items:center;gap:8px}
.icon-btn{border:0;background:transparent;width:36px;height:36px;cursor:pointer}
.form-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:10px 0}
.checkbox{display:inline-flex;gap:8px;align-items:center;user-select:none}
.btn-primary{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;border:0;border-radius:12px;background:var(--mc-blue);color:#fff;font-weight:700;cursor:pointer}
.btn-primary:hover{background:var(--mc-blue-dark)}
.btn-ghost{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 14px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
.btn-ghost:hover{border-color:#d1d5db}
.btn-spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;display:none;animation:spin 1s linear infinite}
.btn-primary.loading .btn-spinner{display:inline-block}
.btn-primary.loading .btn-label{opacity:.75}
.divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#9aa3b2;gap:12px;margin:18px 0}
.divider::before,.divider::after{content:"";height:1px;background:#e5e7eb}
.social-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.error{display:block;color:#c0392b;font-size:12px;margin-top:6px;min-height:1em}
.auth-footer{margin-top:24px;text-align:center;color:var(--mc-muted)}
.legal{display:flex;gap:10px;justify-content:center;margin-top:6px}
.recaptcha-placeholder{height:0}
@media(max-width:1024px){.auth-layout{grid-template-columns:1fr}.brand-panel{display:none}}
@keyframes spin{to{transform:rotate(360deg)}}
/* Portal */
.navbar{box-shadow:var(--shadow)}
.card{border:0;border-radius:16px;box-shadow:var(--shadow)}
.user-chip{display:inline-flex;gap:10px;align-items:center;background:#eef2ff;border-radius:999px;padding:6px 10px;font-size:14px}
.signout-btn{border:0;background:#fff;border-radius:999px;padding:6px 10px;box-shadow:var(--shadow);cursor:pointer}