/* ========= AUTH PAGE (header var, footer yok) ========= */
.au{
  --accent:#ff3b1f;
  --ink:#141414;
  --muted: rgba(20,20,20,.62);
  --line: rgba(0,0,0,.10);
  --bg:#fff;

  padding: 42px 16px 64px;
  background: var(--bg);
}

.au__wrap{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.auCard{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.auView{ display:none; }
.auView.is-active{ display:block; }

.auTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.auTitle{
  margin: 0;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.auStep{
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(20,20,20,.55);
  padding-top: 2px;
}

.auDesc{
  margin: 10px 0 14px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(20,20,20,.65);
  line-height: 1.45;
}

.auMeta{
  margin: 10px 0 12px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(20,20,20,.62);
}

.auForm{ display:flex; flex-direction:column; gap: 12px; }

.auField{ display:block; }
.auLabel{
  display:block;
  margin: 0 0 6px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
}

.auInput{
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  padding: 0 12px;
  background:#fff;
  outline:none;

  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color:#7b7b7b;
}
.auInput::placeholder{ color:#9a9a9a; }
.auInput:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.auErr{
  display:none;
  margin-top: 6px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color:#c62828;
  line-height: 1.2;
}
.auField.has-error .auErr{ display:block; }
.auField.has-error .auInput{
  border-color: rgba(198,40,40,.65);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* password icon */
.auWithIcon{ position:relative; }
.auWithIcon .auInput{ padding-right: 44px; }

.auIconBtn{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.05);
  cursor:pointer;
  display:grid;
  place-items:center;
  color: rgba(20,20,20,.65);
}
.auIconBtn svg{ width: 18px; height: 18px; display:block; }

.auRowBetween{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: -4px;
}

/* Buttons */
.auBtn{
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor:pointer;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.auBtn--primary{ background: var(--accent); color:#fff; }
.auBtn--primary:active{ transform: translateY(1px); }
.auBtn--ghost{ background: rgba(0,0,0,.04); color:#3a3a3a; }
.auBtn--soft{ background: rgba(0,0,0,.03); color:#3a3a3a; }

.auDivider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  color: rgba(20,20,20,.45);
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 11px;
  margin: 2px 0;
}
.auDivider::before,
.auDivider::after{
  content:"";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(0,0,0,.08);
}

.auLinks{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 2px;
}

.auLink{
  border:0;
  background:transparent;
  cursor:pointer;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(20,20,20,.62);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auLink:hover{ color: rgba(20,20,20,.80); }

/* Code inputs */
.auCodeBox{
  display:flex;
  gap: 10px;
  align-items:center;
}
.auCodeCell{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  text-align:center;
  font-size: 16px;
  outline:none;
}
.auCodeCell:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
  background:#fff;
}
.auField.has-error .auCodeCell{
  border-color: rgba(198,40,40,.65);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* Grid */
.auGrid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Toast + Loading */
.auToast{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  background: rgba(20,20,20,.92);
  color:#fff;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.auToast.is-show{ opacity: 1; transform: translateY(0); }

.auLoading{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.72);
  display:none;
  place-items:center;
}
.auLoading.is-show{ display:grid; }
.auSpinner{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.55);
  animation: auSpin .9s linear infinite;
}
@keyframes auSpin{ to{ transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 640px){
  .au{ padding: 22px 14px 48px; }
  .auCard{ padding: 16px 14px 14px; border-radius: 16px; }
  .auGrid2{ grid-template-columns: 1fr; }
  .auCodeBox{ gap: 8px; }
  .auCodeCell{ width: 42px; height: 42px; }
}
