.sf-auth-wrap{
  --sf-ink:#26302f;
  --sf-muted:#707875;
  --sf-line:#e1d5c4;
  --sf-card:#fffdf8;
  --sf-accent:#8a5a2b;
  --sf-accent-dark:#6f431d;
  max-width:720px;
  margin:28px auto;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--sf-ink);
}
.sf-auth-wrap *{box-sizing:border-box}
.sf-auth-card{
  background:#fff;
  border:1px solid var(--sf-line);
  border-radius:14px;
  padding:24px;
  box-shadow:0 8px 22px rgba(48,40,28,.045);
}
.sf-auth-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:18px 20px;
  border:1px solid var(--sf-line);
  border-radius:12px;
  background:linear-gradient(135deg,#f1e6d6 0%,#fbf6ee 100%);
  margin-bottom:14px;
}
.sf-auth-head h2{
  margin:0 0 6px;
  font-size:26px;
  line-height:1.15;
  font-weight:650;
  letter-spacing:-.02em;
}
.sf-auth-head p{margin:0;color:var(--sf-muted);font-size:14px}
.sf-auth-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
}
.sf-auth-tabs a,
.sf-auth-button{
  text-decoration:none;
  padding:8px 13px;
  border-radius:10px;
  border:1px solid var(--sf-line);
  background:#fff;
  color:var(--sf-ink);
  font-size:14px;
  line-height:1.2;
  font-weight:600;
  box-shadow:0 3px 9px rgba(48,40,28,.035);
  cursor:pointer;
  display:inline-block;
}
.sf-auth-tabs a.active,
.sf-auth-tabs a:hover,
.sf-auth-button:hover{
  background:var(--sf-accent);
  color:#fff;
  border-color:var(--sf-accent);
  box-shadow:0 5px 13px rgba(138,90,43,.14);
}
.sf-auth-button.secondary{background:#fff;color:var(--sf-ink)}
.sf-auth-form{
  display:grid;
  gap:15px;
  max-width:520px;
}
.sf-auth-form label{
  display:grid;
  gap:7px;
  font-weight:650;
}
.sf-auth-form input[type="text"],
.sf-auth-form input[type="email"],
.sf-auth-form input[type="password"]{
  width:100%;
  border:1px solid var(--sf-line);
  border-radius:9px;
  padding:10px 11px;
  font-size:15px;
  background:#fff;
}
.sf-auth-form input:focus{
  outline:2px solid rgba(138,90,43,.15);
  border-color:#c9a77f;
}
.sf-auth-form small,
.sf-auth-help{font-weight:400;color:var(--sf-muted);font-size:13px;margin:0}
.sf-auth-check{display:flex!important;align-items:center;gap:8px;font-weight:500!important}
.sf-auth-check input{width:auto}
.sf-auth-note{border-radius:10px;padding:12px 14px;margin:14px 0;font-weight:600}
.sf-auth-ok{background:#eef8f2;border:1px solid #b8dfc7}
.sf-auth-error{background:#fff3ef;border:1px solid #ecc0b0;color:#7b2d20}
.sf-auth-logged{
  border:1px solid var(--sf-line);
  background:var(--sf-card);
  border-radius:12px;
  padding:16px;
}
.sf-auth-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
@media(max-width:640px){
  .sf-auth-card{padding:17px}
  .sf-auth-head{padding:16px}
  .sf-auth-head h2{font-size:23px}
}
