/* ==========================================================================
   CONVEO — Auth pages (login, signup, reset)
   Page-specific styles only. Inherits colors, type scale, layout utilities,
   and buttons from styles.css — load that first.
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-mobile);
}

.auth__card {
  width: 100%;
  max-width: 420px;
}

.auth__logo {
  display: inline-block;
  margin-bottom: 48px;
}

.auth__logo-img {
  height: 36px;
  width: auto;
}

.auth__heading {
  font-size: var(--fs-large);
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
}

.auth__sub {
  color: var(--white-muted);
  margin-bottom: 32px;
}

/* ---------- Form ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.field input {
  background: transparent;
  border: 1px solid var(--white-faint-16);
  border-radius: 2px;
  color: var(--color-white);
  font-family: var(--font-fallback);
  font-size: var(--fs-body);
  padding: 14px 16px;
  transition: border-color 150ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.field input::placeholder {
  color: var(--white-muted);
}

.auth-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.auth-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Alert (error / success — no fourth color, differentiated by label copy) ---------- */
.form-alert {
  border-left: 2px solid var(--color-blue);
  padding: 4px 0 4px 16px;
  margin-bottom: 24px;
}

.form-alert__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: var(--color-blue);
  margin-bottom: 4px;
}

.form-alert__message {
  color: var(--color-white);
}

/* ---------- Secondary links ---------- */
.auth__links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth__links-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.auth__links a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth__links a:hover {
  opacity: 0.65;
}

.auth__links p {
  color: var(--white-muted);
}

/* ---------- Reset page: two panels, one hidden at a time ---------- */
[hidden] {
  display: none !important;
}
