:root{
  --bg:#eef2f7;
  --card:#ffffff;
  --text:#1b2430;
  --muted:#6b7785;
  --brand:#2b77d1;
  --border:#d9e2ef;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}
.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.card{
  width:min(520px, 100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
}
.brand{
  text-align:center;
  margin-bottom:18px;
}
.logo{
  width:46px;height:46px;
  margin:0 auto 10px;
  border-radius:12px;
  background:linear-gradient(135deg, #1d4ed8, #60a5fa);
}
.title{
  font-weight:800;
  letter-spacing:.3px;
}
.subtitle{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}
.field{
  display:block;
  margin:14px 0;
}
.field span{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
.field input{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 12px;
  outline:none;
  font-size:14px;
  background:#fbfdff;
}
.field input:focus{
  border-color:#9cc0f2;
  box-shadow:0 0 0 3px rgba(43,119,209,.12);
}
.btn{
  width:100%;
  margin-top:12px;
  border:none;
  border-radius:12px;
  padding:12px;
  font-weight:700;
  background:var(--brand);
  color:white;
  cursor:pointer;
}
.btn:hover{filter:brightness(.98)}
.alert{
  background:#fff2f2;
  border:1px solid #ffd0d0;
  color:#8a1f1f;
  padding:10px 12px;
  border-radius:10px;
  margin:10px 0 0;
  font-size:14px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:#ffffff;
  border-bottom:1px solid var(--border);
}
.topbar .right{
  display:flex;
  gap:14px;
  align-items:center;
  color:var(--muted);
}
.link{color:var(--brand); text-decoration:none; font-weight:600;}
.content{padding:22px;}
.foot{
  margin-top:16px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}


/* ==========================
   Auth (Login) — Credia QR
   ========================== */
.auth-bg{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(43,119,209,.14), transparent 60%),
              radial-gradient(1000px 500px at 80% 0%, rgba(102,49,255,.10), transparent 55%),
              var(--bg);
  min-height:100vh;
}

.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
}

.auth-card{
  width:min(560px, 100%);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:28px 28px 22px;
  box-shadow:0 20px 60px rgba(15,23,42,.14);
}

.auth-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:10px 0 18px;
}

.auth-mark{
  width:36px;
  height:36px;
  border-radius:10px;
  background: linear-gradient(135deg, #1f7ae0 0%, #6a3bff 100%);
  transform: rotate(45deg);
  box-shadow:0 10px 22px rgba(31,122,224,.25);
}

.auth-brand{
  text-align:left;
}

.auth-name{
  font-weight:800;
  letter-spacing:.02em;
  font-size:20px;
  line-height:1.1;
}

.auth-subtitle{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.auth-error{
  background:#fff1f1;
  border:1px solid #ffd0d0;
  color:#8a1f1f;
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  margin:0 0 14px;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.auth-label{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}

.auth-field{
  position:relative;
  display:flex;
  align-items:center;
}

.auth-ico{
  position:absolute;
  left:12px;
  font-size:16px;
  opacity:.75;
  pointer-events:none;
}

.auth-input{
  width:100%;
  padding:14px 44px 14px 42px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  font-size:14px;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.auth-input:focus{
  border-color: rgba(43,119,209,.65);
  box-shadow:0 0 0 4px rgba(43,119,209,.15);
}

.auth-eye{
  position:absolute;
  right:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  opacity:.85;
}

.auth-eye:hover{
  background:#f7f9ff;
}

.auth-btn{
  margin-top:12px;
  width:100%;
  border:0;
  border-radius:12px;
  padding:14px 16px;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 14px 34px rgba(43,119,209,.28);
}

.auth-btn:hover{
  filter:brightness(.98);
}

.auth-lock{
  opacity:.9;
}

.auth-footer{
  margin-top:16px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
