/* login styles */
:root{
  --brand:#116466;
  --accent:#2dd4bf;

  --bg:#f6f8fb;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(226,232,240,.95);

  --r18:18px;
  --shadow:0 10px 30px rgba(2,6,23,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:24px;
  gap:16px;
}

.card{
  width:min(420px, 92vw);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r18);
  box-shadow:var(--shadow);
  padding:22px 20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
  margin-bottom:16px;
}

.logo{
  width:44px; height:44px;
  border-radius:12px;
  display:grid; place-items:center;
  background:rgba(17,100,102,.10);
  color:var(--brand);
  font-weight:800;
  letter-spacing:.6px;
}

.title{
  font-size:16px;
  font-weight:800;
  line-height:1.1;
}
.sub{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}

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

.field span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

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

.field input:focus{
  border-color:rgba(17,100,102,.45);
  box-shadow:0 0 0 4px rgba(17,100,102,.10);
}

.passWrap{
  display:flex;
  gap:8px;
  align-items:center;
}

.eye{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:11px 10px;
  font-size:12px;
  color:var(--muted);
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease;
}
.eye:hover{ transform:translateY(-1px); border-color:rgba(17,100,102,.35); }

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}

.check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}
.check input{ width:16px; height:16px; }

.link{
  font-size:13px;
  color:var(--brand);
  text-decoration:none;
}
.link:hover{ text-decoration:underline; }

.btn{
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .12s ease, filter .12s ease;
}
.btn:hover{ transform:translateY(-1px); filter:brightness(0.98); }
.btn:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.btnLoad{
  width:16px; height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  display:none;
  animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.hint{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.error{
  display:none;
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.20);
  color:#b91c1c;
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
}

.footer{
  color:var(--muted);
  font-size:12px;
}
