:root{
  --bg:#f4f6f9;
  --card:#ffffff;
  --border:#e4e7ec;
  --text:#1f2937;
  --muted:#6b7280;
  --accent:#2563eb;
  --accent-soft:#dbeafe;
  --danger:#dc2626;
  --radius:14px;
  --font: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

*{ box-sizing:border-box; }

html,body{
  height:100%;
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
}

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.loginBox{
  width:100%;
  max-width:420px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* Brand */
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:20px;
}

.logo{
  width:40px;
  height:40px;
  border-radius:10px;
  background:linear-gradient(135deg,#3b82f6,#60a5fa);
}

.brand-title{
  font-weight:700;
  font-size:16px;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
}

/* Headings */
.title{
  font-size:22px;
  margin:8px 0 4px;
}

.subtitle{
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}

/* Alert */
.alert{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  padding:10px;
  border-radius:10px;
  font-size:13px;
  margin-bottom:14px;
}

/* Role toggle */
.roleTabs{
  display:flex;
  background:#f1f5f9;
  border-radius:999px;
  padding:4px;
  margin-bottom:16px;
}

.roleTabs input{ display:none; }

.roleTabs label{
  flex:1;
  text-align:center;
  padding:8px;
  font-size:13px;
  border-radius:999px;
  cursor:pointer;
  color:var(--muted);
}

.roleTabs input:checked + label{
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:600;
}

/* Fields */
.field{ margin-bottom:14px; }

.field label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:var(--muted);
}

.input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:14px;
}

.input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}

/* Checkbox */
.check{
  display:flex;
  gap:8px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:16px;
}

/* Button */
.btn{
  width:100%;
  padding:11px;
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.btn:hover{ background:#1d4ed8; }

/* Footer */
.foot{
  margin-top:16px;
  font-size:12px;
  text-align:center;
  color:var(--muted);
}
