/* HIRECRM public auth/login polish.
   UI-only: no auth/business logic changes. */
:root {
  --auth-bg: #f8fafc;
  --auth-surface: #ffffff;
  --auth-soft: #fbfcfe;
  --auth-border: #e7ecf3;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-accent: #2563eb;
  --auth-accent-hover: #1d4ed8;
  --auth-danger: #dc2626;
  --auth-danger-bg: #fef2f2;
  --auth-danger-border: #fecaca;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-auth-body {
  overflow-x: hidden;
}

.public-auth-shell {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--auth-bg) 100%);
}

.public-auth-card {
  width: min(100%, 420px);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
  padding: 28px;
}

.public-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.public-auth-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  letter-spacing: -.03em;
}

.public-auth-brand__name {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.03em;
}

.public-auth-brand__subtitle {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--auth-muted);
  font-weight: 650;
}

.public-auth-heading {
  margin-bottom: 18px;
}

.public-auth-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 850;
}

.public-auth-heading p {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.45;
}

.public-auth-alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid var(--auth-danger-border);
  border-radius: 12px;
  background: var(--auth-danger-bg);
  color: var(--auth-danger);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.public-auth-form {
  display: grid;
  gap: 14px;
}

.public-auth-field {
  display: grid;
  gap: 6px;
}

.public-auth-field label {
  color: #334155;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 760;
}

.public-auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-text);
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.public-auth-field input::placeholder {
  color: #94a3b8;
}

.public-auth-field input:hover {
  border-color: #cbd5e1;
}

.public-auth-field input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.public-auth-submit {
  margin-top: 4px;
  min-height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--auth-accent);
  border-radius: 10px;
  background: var(--auth-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background .14s ease, border-color .14s ease, transform .08s ease, opacity .14s ease;
}

.public-auth-submit:hover {
  background: var(--auth-accent-hover);
  border-color: var(--auth-accent-hover);
}

.public-auth-submit:active {
  transform: translateY(1px);
}

.public-auth-submit:disabled,
.public-auth-submit.is-loading {
  opacity: .72;
  cursor: progress;
}

.public-auth-demo {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.35;
}

.public-auth-demo a {
  color: var(--auth-accent);
  font-weight: 800;
  text-decoration: none;
}

.public-auth-demo a:hover {
  text-decoration: underline;
}

[data-public-page] .global-search,
[data-public-page] .command-palette,
[data-public-page] [data-global-search],
[data-public-page] .pwa-install,
[data-public-page] .pwa-install-banner,
[data-public-page] [data-pwa-install],
[data-public-page] [data-install-prompt] {
  display: none !important;
}

@media (max-width: 768px) {
  .public-auth-shell {
    padding: 18px;
    align-items: start;
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .public-auth-card {
    padding: 22px;
    border-radius: 16px;
  }
}

@media (max-width: 390px) {
  .public-auth-shell {
    padding: 14px;
  }

  .public-auth-card {
    padding: 18px;
    border-radius: 14px;
  }

  .public-auth-heading h1 {
    font-size: 21px;
  }

  .public-auth-brand__subtitle {
    font-size: 11px;
  }
}
