/* =====================================================================
   auth.css — tela de login
   ===================================================================== */

.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.auth__box { width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; }

.auth__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.auth__mark {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.auth__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.auth__sub { font-size: 14px; color: var(--muted-2); }

/* toggle de papel */
.toggle { display: flex; background: oklch(92% 0.015 75); border-radius: 14px; padding: 5px; gap: 4px; }
.toggle__opt {
  flex: 1; text-align: center; padding: 11px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted-2);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.toggle__opt.is-active {
  background: var(--surface); color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 3px oklch(30% 0.02 50 / 0.1);
}

.auth__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 32px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}

.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.field__link { font-size: 13px; font-weight: 600; color: var(--brand); cursor: pointer; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  font-size: 15px; font-family: inherit; color: var(--ink); outline: none; background: var(--surface);
}
.input::placeholder { color: var(--placeholder); }
.input:focus { border-color: var(--brand); }

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

.btn--google {
  width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 15px; padding: 13px; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit;
}
.g-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: conic-gradient(oklch(65% 0.19 25), oklch(75% 0.16 85), oklch(60% 0.14 145), oklch(55% 0.18 250));
}

.auth__foot { text-align: center; font-size: 14px; color: var(--muted); }
.auth__foot a { font-weight: 700; }

.auth__error {
  background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-ink);
  font-size: 13px; font-weight: 600; padding: 12px 14px; border-radius: 12px; text-align: center;
}
.auth__version { text-align: center; }
