main.auth{
  width: auto;
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}

section.card{
  position: relative;
  width: min(440px, calc(100% - 32px));
  padding: 18px;

  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] section.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
}

.back{
  position: absolute;
  top: -65px;
  left: 0;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);

  margin-bottom: 12px;
}
.back:hover{
  background: rgba(255,255,255,.08);
  color: var(--text);
}

:root[data-theme="light"] .back{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.04);
}
:root[data-theme="light"] .back:hover{
  background: rgba(15,23,42,.07);
}

.card-header{
  margin-bottom: 12px;
}
.card-header h1{
  margin: 0;
  font-size: 24px;
}
.card-header p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

.primary{
  border-color: rgba(78,161,255,.40);
  background: rgba(78,161,255,.12);
  margin-bottom: 12px; 
}
.primary:hover{
  background: rgba(78,161,255,.18);
}

.ghost{
  background: transparent;
}

.row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.checkbox{
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.checkbox input{
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.link{
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.link:hover{
  text-decoration: underline;
}

.divider{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(168,179,194,.75);
}
.divider::before,
.divider::after{
  content: "";
  height: 1px;
  background: rgba(255,255,255,.10);
  flex: 1;
}
.divider span{
  padding: 0 6px;
}

:root[data-theme="light"] .divider{
  color: rgba(91,100,117,.90);
}
:root[data-theme="light"] .divider::before,
:root[data-theme="light"] .divider::after{
  background: rgba(15,23,42,.12);
}

.muted{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.status{
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
