/* static/control/css/control-auth.css */
:root {
  --saas-bg: #020617;
  --saas-surface: #0b1120;
  --saas-border: rgba(148,163,184,0.35);
  --saas-accent: #38bdf8;
  --saas-text: #e5e7eb;
  --saas-muted: #9ca3af;
}

body.control-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--saas-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

.auth-left {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.22);
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(2,6,23,0.85));
  padding: 22px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.75);
}

.auth-logo-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.auth-brand-logo {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.3);
}

.auth-brand-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(34,197,94,0.15));
  border: 1px solid rgba(56,189,248,0.45);
  color: var(--saas-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-left h1 {
  margin: 22px 0 12px;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-left p {
  color: var(--saas-muted);
  margin: 0;
  max-width: 46ch;
}

.auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.auth-pill {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.85);
  color: var(--saas-muted);
  font-size: 0.78rem;
}

.auth-card {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.30);
  background: rgba(11,17,32,0.92);
  padding: 28px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.4);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 6px;
}

.auth-subtitle {
  margin: 0 0 14px;
  color: var(--saas-muted);
}

.auth-error {
  border: 1px solid rgba(248,113,113,0.5);
  background: rgba(248,113,113,0.10);
  color: #fecaca;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-field label {
  font-size: 0.82rem;
  color: var(--saas-muted);
}

.auth-field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(2,6,23,0.7);
  color: var(--saas-text);
  padding: 10px 12px;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}

.auth-submit {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background: linear-gradient(to right, #22c55e, #38bdf8);
  color: #020617;
  cursor: pointer;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--saas-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.auth-links a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

.auth-footnote {
  margin-top: 14px;
  color: var(--saas-muted);
  font-size: 0.85rem;
}
