/* prolinesim — auth pages. Same tokens as landing.css */
:root {
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-100: #f1f3f6;
  --ink-50: #f7f8fa;
  --white: #ffffff;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --ok: #15803d;
  --ok-bg: #effaf3;
  --err: #b42318;
  --err-bg: #fef3f2;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ink-50);
  color: var(--ink-600);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 16px;
}

.auth-logo { display: inline-flex; line-height: 0; }
.auth-logo svg { height: 28px; width: auto; }

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.auth-title {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.auth-description {
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.6;
  margin: -16px 0 24px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--err-bg);
  color: var(--err);
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.45;
}
.auth-alert .alert-icon { font-size: 14px; margin-top: 3px; }
.auth-alert-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(21, 128, 61, 0.2); }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--ink-900);
  font-size: 14px;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.form-group input::placeholder { color: var(--ink-400); }
.form-group input:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); }
.form-group input[aria-invalid="true"] { border-color: var(--err); }

.password-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.password-row label { margin-bottom: 0; }
.password-row .forgot { color: var(--blue-700); text-decoration: none; font-size: 14px; }
.password-row .forgot:hover { text-decoration: underline; text-underline-offset: 3px; }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }

.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink-500);
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms var(--ease);
}
.password-toggle:hover { color: var(--ink-900); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 20px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition-property: background-color, transform;
  transition-duration: 120ms;
  transition-timing-function: var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-800); }

.auth-footer {
  text-align: center;
  margin: 20px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}
.auth-footer + .auth-footer { margin-top: 8px; }
.auth-footer a { color: var(--blue-700); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-meta { margin: 0; color: var(--ink-500); font-size: 13px; text-align: center; }

#password-help { margin: 8px 0 0; color: var(--ink-500); font-size: 13px; }
.auth-description#password-help { margin: -16px 0 24px; font-size: 14px; }

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
}
