/* ════════════════════════════════════════════════════════════════
   WERKLY — Styles für Auth-Seiten
   (login.html, register.html, reset-password.html, update-password.html)
   ════════════════════════════════════════════════════════════════ */

:root{
  --a:#2563EB;--ah:#1d4ed8;--al:#EFF6FF;
  --tx:#111827;--t2:#6B7280;--t3:#9CA3AF;
  --bg:#F9FAFB;--su:#FFF;--bd:#E5E7EB;--bd2:#D1D5DB;
  --ok-b:#DCFCE7;--ok:#15803D;
  --er-b:#FEE2E2;--er:#B91C1C;
  --r:8px;--rl:12px;--rxl:16px;
  --shm:0 4px 16px rgba(0,0,0,.10);
}

*{box-sizing:border-box;margin:0;padding:0}

html,body{
  min-height:100%;
  font-family:'Inter',sans-serif;
  font-size:14px;
  color:var(--tx);
  background:var(--bg);
}

input,select,textarea,button{font-family:inherit;font-size:13px}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
body{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:24px;
}

.auth-wrap{
  width:420px;
  max-width:100%;
}
.auth-wrap.wide{
  width:640px;
}

/* ── LOGO ───────────────────────────────────────────────────────── */
.auth-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:24px;
}
.lmark{
  width:38px;height:38px;
  background:var(--a);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:20px;
  flex-shrink:0;
}
.lname{
  font-size:20px;
  font-weight:700;
  letter-spacing:-.4px;
}

/* ── CARD ───────────────────────────────────────────────────────── */
.auth-card{
  background:var(--su);
  border:1px solid var(--bd);
  border-radius:var(--rxl);
  padding:32px;
  box-shadow:var(--shm);
}

.auth-title{
  font-size:19px;
  font-weight:700;
  margin-bottom:6px;
}
.auth-sub{
  font-size:13px;
  color:var(--t2);
  margin-bottom:24px;
}

/* ── FORM ───────────────────────────────────────────────────────── */
.fg{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-bottom:16px;
}
.fg.full{grid-column:1/-1}

.fl{
  font-size:11px;
  font-weight:700;
  color:var(--t2);
  text-transform:uppercase;
  letter-spacing:.05em;
}

.fi{
  padding:10px 12px;
  border:1px solid var(--bd2);
  border-radius:var(--r);
  background:var(--su);
  color:var(--tx);
  outline:none;
  transition:border-color .12s,box-shadow .12s;
  width:100%;
}
.fi:focus{
  border-color:var(--a);
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.fi.err{
  border-color:var(--er);
  box-shadow:0 0 0 3px rgba(185,28,28,.1);
}
select.fi{cursor:pointer}

.fgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:520px){
  .fgrid{grid-template-columns:1fr}
}

.section-label{
  font-size:11px;
  font-weight:700;
  color:var(--t2);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:20px 0 12px;
  padding-bottom:6px;
  border-bottom:1px solid var(--bd);
}
.section-label:first-of-type{margin-top:0}

/* ── BUTTON ─────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:11px 16px;
  border-radius:var(--r);
  border:1px solid var(--bd2);
  background:var(--su);
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  color:var(--tx);
  transition:all .12s;
  width:100%;
  font-family:inherit;
}
.btn:hover{background:var(--bg)}
.btn:active{transform:scale(.99)}
.btn:disabled{opacity:.6;cursor:not-allowed}

.bp{
  background:var(--a);
  color:#fff;
  border-color:var(--a);
}
.bp:hover{background:var(--ah)}

/* ── ALERTS ─────────────────────────────────────────────────────── */
.alert{
  display:none;
  padding:11px 14px;
  border-radius:var(--r);
  font-size:12.5px;
  line-height:1.5;
  margin-bottom:16px;
}
.alert.show{display:block}

.alert-error{
  background:var(--er-b);
  color:var(--er);
}
.alert-success{
  background:var(--ok-b);
  color:var(--ok);
}

/* ── FOOTER LINK ────────────────────────────────────────────────── */
.auth-foot{
  text-align:center;
  margin-top:20px;
  font-size:13px;
  color:var(--t2);
}
.auth-foot a{
  color:var(--a);
  text-decoration:none;
  font-weight:600;
}
.auth-foot a:hover{text-decoration:underline}

/* ── SPINNER ────────────────────────────────────────────────────── */
.spinner{
  display:inline-block;
  width:13px;height:13px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .6s linear infinite;
  vertical-align:-2px;
}
.bp .spinner{
  border-color:rgba(255,255,255,.4);
  border-top-color:#fff;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}
