/**
 * Compact login / register — matches Genpro futuristic public shell
 */

body.genpro-futuristic.fx-auth-page {
  --fx-auth-card-max: 420px;
}

body.genpro-futuristic.fx-auth-page #main-content {
  min-height: calc(100vh - var(--fx-page-offset) - 120px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body.genpro-futuristic .fx-auth-shell {
  width: 100%;
  padding: clamp(0.75rem, 3vw, 1.5rem) 0 clamp(2rem, 5vw, 3rem);
}

body.genpro-futuristic .fx-auth-shell__inner {
  width: min(100%, var(--fx-auth-card-max));
  margin: 0 auto;
}

body.genpro-futuristic .fx-auth-card-v2 {
  background: var(--fx-bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow-glass);
  padding: clamp(1.25rem, 3.5vw, 1.75rem);
}

body.genpro-futuristic .fx-auth-card-v2__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

body.genpro-futuristic .fx-auth-card-v2__brand img,
body.genpro-futuristic .fx-auth-card-v2__brand .genpro-public-logo {
  height: 44px;
  width: auto;
  max-width: min(200px, 70vw);
  object-fit: contain;
}

body.genpro-futuristic .fx-auth-card-v2__head {
  text-align: center;
  margin-bottom: 1.1rem;
}

body.genpro-futuristic .fx-auth-card-v2__head h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-text);
}

body.genpro-futuristic .fx-auth-card-v2__head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fx-text-muted);
}

body.genpro-futuristic .fx-auth-alert {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: var(--fx-radius-sm);
  font-size: 0.8125rem;
  line-height: 1.4;
}

body.genpro-futuristic .fx-auth-alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

body.genpro-futuristic .fx-auth-alert--danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

body.genpro-futuristic .fx-auth-google {
  margin-bottom: 0.85rem;
}

body.genpro-futuristic .fx-auth-google .g_id_signin {
  display: flex;
  justify-content: center;
}

body.genpro-futuristic .fx-auth-google-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--fx-radius-pill);
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--fx-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.genpro-futuristic .fx-auth-google-fallback:hover {
  border-color: var(--fx-border-accent);
  background: var(--fx-surface-hover);
}

body.genpro-futuristic .fx-auth-google-fallback svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.genpro-futuristic .fx-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0;
  color: var(--fx-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.genpro-futuristic .fx-auth-divider::before,
body.genpro-futuristic .fx-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--fx-border);
}

body.genpro-futuristic .fx-auth-form {
  display: grid;
  gap: 0.75rem;
}

body.genpro-futuristic .fx-auth-form__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  body.genpro-futuristic .fx-auth-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

body.genpro-futuristic .fx-auth-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fx-text-muted);
}

body.genpro-futuristic .fx-auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--fx-radius-sm);
  border: 1px solid var(--fx-border);
  background: var(--fx-surface);
  color: var(--fx-text);
  font-size: 0.9375rem;
  box-sizing: border-box;
}

body.genpro-futuristic .fx-auth-field input:focus {
  outline: none;
  border-color: var(--fx-border-accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

body.genpro-futuristic .fx-auth-submit {
  margin-top: 0.15rem;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: var(--fx-radius-pill);
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent-bright));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.genpro-futuristic .fx-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25);
}

body.genpro-futuristic .fx-auth-switch {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fx-text-muted);
}

body.genpro-futuristic .fx-auth-switch a {
  color: var(--fx-accent-bright);
  font-weight: 600;
  text-decoration: none;
}

body.genpro-futuristic .fx-auth-switch a:hover {
  text-decoration: underline;
}

body.genpro-futuristic .fx-auth-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--fx-text-muted);
  text-align: center;
}

body.genpro-futuristic .fx-auth-hint a {
  color: var(--fx-accent-bright);
  text-decoration: none;
}

body.genpro-futuristic .fx-auth-hint a:hover {
  text-decoration: underline;
}
