/* Sign-in page. */

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 8px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  animation: rise 0.45s var(--ease);
}

.auth-mark { display: block; margin: 0 auto 10px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 1.6rem; letter-spacing: -0.02em; }
.auth-sub { margin: 6px 0 20px; text-align: center; color: var(--muted); font-size: 0.95rem; }

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
}
.tab {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.tab[aria-selected="true"] { color: var(--text); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-indicator {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease);
}
.tabs.signup .tab-indicator { transform: translateX(100%); }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 64px; }
.reveal {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.reveal:hover { color: var(--text); background: var(--surface-2); }

.auth-form .hint { margin: -6px 0 14px; }
.auth-form .error { margin: 0 0 14px; }
.turnstile { display: flex; justify-content: center; margin: 0 0 14px; min-height: 65px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.github-btn svg { width: 18px; height: 18px; fill: currentColor; }

.demo-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.auth-foot { margin: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.auth-foot a { color: var(--muted); }
