:root{
  --field:#f3f4f6;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  padding:calc(12px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
}

.page{
  width:min(480px, 100%);
}

.card{
  background:var(--card);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:24px 20px;
}

.header{
  position:relative;
  text-align:center;
  margin-bottom:20px;
}
.backBtn{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:8px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.backBtn:active{transform:translateY(-50%) translateY(1px)}

.avatar{
  width:72px;height:72px;
  margin:0 auto 16px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  display:grid;
  place-items:center;
  box-shadow:0 8px 20px rgba(230,58,58,.18);
}
.avatar svg{width:36px;height:36px;opacity:.95}

.pageTitle{
  font-size:20px;
  font-weight:900;
  color:var(--text);
  margin:0;
}

.form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  width:100%;
  background:var(--field);
  border-radius:12px;
  padding:14px 16px;
  border:2px solid transparent;
  transition:border-color .2s;
}
.field:focus-within{
  border-color:var(--brand);
  background:#fff;
}
.field input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  font-size:16px;
  color:var(--text);
}
.field input::placeholder{color:var(--muted)}

.btn{
  width:100%;
  border:0;
  border-radius:999px;
  padding:14px 16px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.5px;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow:0 8px 20px rgba(230,58,58,.22);
  transition:transform .15s;
}
.btn:active{transform:translateY(1px)}

.links{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4px;
  font-size:15px;
}
.links a{
  color:var(--muted);
  text-decoration:none;
}
.links a.primary{color:var(--brand);font-weight:800}
.links a:hover{text-decoration:underline}

.linksSingle{justify-content:flex-end}

.msg{
  width:100%;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  min-height:18px;
  white-space:pre-wrap;
}

.formHint{
  width:100%;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
  padding:0 4px;
}

