/* ==========================================================================
   authenticate.css — the reference-code screen.
   ========================================================================== */

.auth-body {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #315b91;
  background: #f0f6ff;
  border: 1px solid #d9e8ff;
  border-radius: 10px;
}

.auth-alert__icon {
  flex-shrink: 0;
  font-size: 17px;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.35em;
  color: var(--text);
  background: var(--panel-alt);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
  letter-spacing: normal;
  color: #64748b;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.auth-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.auth-error {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

.auth-button {
  width: 100%;
  height: 50px;
  margin-top: 0.75rem;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.auth-button:hover:not(:disabled) {
  background: #4f46e5;
}

.auth-button:active:not(:disabled) {
  transform: scale(0.99);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* just-validate injects its own error nodes; keep them readable. */
.auth-form .just-validate-error-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #fca5a5;
}
