/* ===========================================
   PRODUCTLY · Login (et toute page d'authentification)
   ===========================================
   Repose sur les tokens de global.css (Geist, palette OKLCH, accent vert).
   Préfixe .auth-* pour pouvoir réutiliser sur d'autres écrans
   d'authentification plus tard (signup, reset password, etc.).
*/

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Léger halo en fond pour rappeler la signature visuelle de la landing */
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, color-mix(in oklch, var(--accent) 5%, transparent), transparent 70%);
  pointer-events: none;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.auth-back:hover { color: var(--ink); }

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 440px;
  width: 100%;
  padding: 40px 40px 28px;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 28px;
}

.auth-header { margin-bottom: 28px; }

.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.auth-header h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}

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

/* ----- Form ----- */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.auth-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}

.auth-field input::placeholder { color: var(--faint); }

.auth-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  line-height: 1.4;
}

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

/* ----- Footer ----- */

.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-foot a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 560px) {
  .auth-page { padding: 32px 16px; }
  .auth-back { top: 16px; left: 16px; }
  .auth-card { padding: 32px 24px 24px; }
  .auth-header h1 { font-size: 22px; }
  .auth-field input { height: 42px; font-size: 14px; }
}
