/* nyla_engine/ui/static/auth.css
   Auth shell styling — clean light theme matching CRM / homepage.
   Brand overrides via CSS variables only.
*/

:root {
  --brand: #f5c518;
  --brand-hover: #e0b015;

  --bg: #ffffff;
  --panel: #ffffff;
  --border: #eee;
  --text: #1a1a1a;
  --muted: #999;
  --danger: #d93025;

  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #f8f8f8;
}

.auth-shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.auth-subtext {
  margin: 0 0 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

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

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  transition: border-color .15s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .15);
}

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

.auth-submit {
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  background: var(--brand);
  color: #1a1a1a;
  transition: background .15s;
}

.auth-submit:hover {
  background: var(--brand-hover);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  text-align: center;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.auth-alt {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-error-code {
  font-size: 48px;
  font-weight: 700;
  color: var(--muted);
  opacity: .35;
  margin-bottom: 6px;
}

.auth-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Centered error page wrapper */
.nyla-error-center {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

/* Error card */
.nyla-error-card {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  padding: 28px;
}

.nyla-error-code {
  font-size: 56px;
  line-height: 1;
  opacity: .25;
  margin-bottom: 10px;
}

.nyla-error-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
