/* ---------- Auth page (polka-dot background) ---------- */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.auth__wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth__logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.auth__logo span {
  color: var(--accent);
}

.auth__card {
  width: 100%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px -24px rgba(22, 22, 22, 0.18);
}

.auth__google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: var(--ink);
  color: var(--paper-raised);
  border: none;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth__google:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.auth__google svg {
  background: var(--paper-raised);
  border-radius: 50%;
  padding: 2px;
}

.auth__divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.auth__divider span {
  position: relative;
  background: var(--paper-raised);
  padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.auth__form {
  display: flex;
  flex-direction: column;
}

.auth__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth__input {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth__input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.auth__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth__submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-raised);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth__submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.auth__footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.auth__footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.auth__footer a:hover {
  color: var(--accent);
}

.auth__password-wrap {
  position: relative;
}

.auth__password-wrap .auth__input {
  padding-right: 42px;
}

.auth__toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: #8a8a8a;
}

.auth__toggle-password:hover {
  color: #4a4a4a;
}

.auth__toggle-password svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 420px) {
  .auth__card { padding: 24px; }
}

/* ---------- Auth: checkbox (signup only) ---------- */

.auth__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  cursor: pointer;
}

.auth__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth__checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.auth__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid var(--paper-raised);
  border-bottom: 1.5px solid var(--paper-raised);
  transform: rotate(45deg);
}

.auth__checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth__checkbox span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.auth__checkbox a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.auth__checkbox a:hover {
  color: var(--accent);
}