:root{
  --blue:#155EEF;
  --blue-dark:#0F3F9C;
  --blue-soft:#EAF1FF;
  --ink:#0F172A;
  --muted:#667085;
  --line:#E4E9F2;
  --soft:#F6F8FC;
  --red:#D92D20;
  --green:#00896B;
  --shadow:0 18px 42px rgba(15,35,80,.11);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{min-height:100vh;background:#fff;color:var(--ink);}
button,input{font:inherit;}
button{cursor:pointer;}
.auth-page{
  width:min(100%,480px);
  min-height:100vh;
  margin:0 auto;
  padding:20px 18px 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(21,94,239,.12), transparent 30%),
    #fff;
}
.auth-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:-.01em;
}
.brand-mark,.back-link{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
}
.brand-mark{
  background:linear-gradient(135deg,var(--blue),#4C8DFF);
  color:#fff;
  box-shadow:0 12px 24px rgba(21,94,239,.22);
}
.back-link{
  border:1px solid var(--line);
  color:var(--blue);
  background:#fff;
  text-decoration:none;
}
.brand-mark svg,.back-link svg{width:19px;height:19px;}
.auth-hero{
  margin-bottom:22px;
}
.auth-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:11.5px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:14px;
}
.auth-hero h1{
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.04em;
  margin-bottom:10px;
}
.auth-hero p{
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.auth-card{
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:18px;
}
.auth-form{display:grid;gap:13px;}
.field label{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  margin-bottom:7px;
}
.input-wrap{
  height:48px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 13px;
}
.input-wrap:focus-within{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(21,94,239,.10);
}
.input-wrap svg{width:18px;height:18px;color:#98A2B3;flex:0 0 auto;}
.input-wrap input{
  border:none;
  outline:none;
  width:100%;
  color:var(--ink);
  font-size:14px;
  min-width:0;
}
.password-toggle{
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  color:#98A2B3;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.password-toggle svg{width:18px;height:18px;}
.submit-btn{
  height:50px;
  border:none;
  border-radius:17px;
  background:var(--blue);
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 15px 28px rgba(21,94,239,.24);
  margin-top:4px;
}
.submit-btn:disabled{opacity:.72;cursor:not-allowed;}
.auth-status{
  min-height:18px;
  font-size:12.5px;
  line-height:1.45;
  color:var(--muted);
}
.auth-status.is-error{color:var(--red);}
.auth-status.is-success{color:var(--green);}
.auth-switch{
  margin-top:16px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.auth-switch a{
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
}
.auth-note{
  margin-top:16px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px;
  border-radius:18px;
  background:var(--soft);
  color:var(--muted);
  font-size:12.5px;
  line-height:1.5;
}
.auth-note svg{width:18px;height:18px;color:var(--blue);flex:0 0 auto;margin-top:1px;}
@media (min-width:481px){
  body{background:var(--soft);}
  .auth-page{box-shadow:0 0 0 1px var(--line);background:#fff;}
}
