/* Workajobic — login / auth-page styling.
 * Loaded after theme.css. Centered card on warm canvas. */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  position: relative;
  isolation: isolate;
}

/* Subtle brand glow behind the card */
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 80% -10%, color-mix(in oklab, var(--color-brand-500) 14%, transparent), transparent 60%),
    radial-gradient(600px 380px at -5% 110%, color-mix(in oklab, var(--color-brand-600) 10%, transparent), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--rule-12);
  border-radius: var(--radius-card);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-card);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-brand img {
  height: 36px;
  width: auto;
}

.auth-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mute);
  font-weight: 500;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-brand-600);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--color-ink);
}
.auth-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.auth-help {
  color: var(--color-mute);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.auth-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.auth-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule-15);
  border-radius: var(--radius-input);
  font-size: 15px;
  font-family: inherit;
  background: color-mix(in oklab, var(--color-canvas) 50%, white);
  color: var(--color-ink);
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}
.auth-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-brand-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-brand-600) 18%, transparent);
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  margin-top: 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-canvas);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  letter-spacing: 0.01em;
}
.auth-form button[type="submit"]:hover {
  background: var(--color-brand-600);
}
.auth-form button[type="submit"]:active { transform: scale(0.98); }
.auth-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: progress;
}

.auth-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: 13px;
  border: 1px solid color-mix(in oklab, var(--color-danger) 25%, transparent);
}

.auth-success {
  display: none;
  text-align: center;
}
.auth-success.show { display: block; }
.auth-success-icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 18px;
  border-radius: 999px;
  background: var(--color-brand-50);
  display: grid;
  place-items: center;
  color: var(--color-brand-600);
}
.auth-success-icon svg { width: 28px; height: 28px; }

.auth-success-email {
  font-weight: 500;
  color: var(--color-ink);
}

.auth-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-12);
  font-size: 12px;
  color: var(--color-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-foot a { color: var(--color-ink-soft); text-decoration: none; }
.auth-foot a:hover { color: var(--color-brand-600); }

.auth-resend {
  background: none;
  border: none;
  color: var(--color-brand-600);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  margin-top: 8px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.auth-resend:hover { color: var(--color-brand-700); }
