:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --accent:#1b75d0;
  --accent-600:#155ea6;
  --muted:#6b7280;
  --border:#e5e7eb;
  --focus:#3b82f6;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background:var(--bg);
  color:#111827;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; display:block}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height:100dvh;
}

.panel{position:relative}

.form-panel{
  display:grid;
  place-items:center;
  padding:clamp(16px,3vw,48px);
  background:#fff;
}

.form-wrap{
  width:min(480px, 90vw);
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
}
.brand img{height:54px}
.brand-sub{
  font-size:12px;
  line-height:1.1;
  color:var(--muted);
}

.alert{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  padding:12px 14px;
  border-radius:10px;
  margin-bottom:12px;
}

.login-form{
  display:grid;
  gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  padding:24px;
  border-radius:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

label{font-size:14px; color:#111827}
input[type=email],
input[type=password]{
  appearance:none;
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-size:16px;
  outline: none;
}
input:focus{border-color:var(--focus); box-shadow:0 0 0 3px rgba(59,130,246,.2)}

.password-field{position:relative}
.password-field .toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:none; background:transparent; width:36px; height:36px;
  cursor:pointer;
}
.password-field .toggle::before{
  content:'ðŸ‘';
  font-size:18px;
}

.btn-primary{
  margin-top:6px;
  background:var(--accent);
  color:#fff;
  border:none;
  padding:12px 16px;
  border-radius:14px;
  font-weight:600;
  cursor:pointer;
}
.btn-primary:hover{background:var(--accent-600)}

.link-muted{
  display:inline-block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}

.locale{margin-top:28px; text-align:center}
.locale a{color:#9ca3af; pointer-events:none}

.hero-panel{
  overflow:hidden;
  background: #0b3a6b;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.95;
}

/* Dashboard */
.topbar{background:#fff;border-bottom:1px solid var(--border)}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  max-width:1100px; margin:0 auto; padding:10px 16px;
}
.brand-inline{display:flex; align-items:center; gap:10px}
.brand-inline img{height:30px}
.btn-secondary{
  display:inline-block; padding:8px 12px; border:1px solid var(--border);
  border-radius:10px; color:#111827; background:#fff; text-decoration:none;
}
.container{max-width:1100px; margin:0 auto; padding:24px 16px}
.card{background:#fff; border:1px solid var(--border); padding:24px; border-radius:16px}

/* Responsive */
@media (max-width: 900px){
  .split{grid-template-columns:1fr;}
  .hero-panel{display:none;}
}