/* AutoGol auth — standalone dark page (no main.css) */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.ag-auth {
  --lp-bg: #050506;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-text: #f2f2f4;
  --lp-muted: #9b9ba4;
  --lp-lime: #bef264;
  --lp-lime-glow: rgba(190, 242, 100, 0.32);
  --lp-font: "Albert Sans", system-ui, sans-serif;
  --lp-display: "Outfit", system-ui, sans-serif;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.ag-auth a {
  color: inherit;
  text-decoration: none;
}

body.ag-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(190, 242, 100, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(167, 139, 250, 0.05), transparent 50%);
}

.ag-auth-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ag-auth-back {
  width: min(400px, 100%);
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lp-muted);
  transition: color 0.2s;
}
.ag-auth-back:hover { color: var(--lp-text); }

.ag-auth-card {
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.ag-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.ag-auth-logo svg {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.ag-auth-logo-text {
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--lp-text);
}
.ag-auth-logo-text span { color: var(--lp-lime); }

.ag-auth-card h1 {
  margin: 0 0 1.25rem;
  font-family: var(--lp-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ag-field { margin-bottom: 0.95rem; }
.ag-field label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-muted);
}
.ag-field input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--lp-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ag-field input::placeholder { color: #5c5c66; }
.ag-field input:focus {
  outline: none;
  border-color: rgba(190, 242, 100, 0.5);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.12);
}

.ag-alert {
  padding: 0.72rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ag-alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.ag-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--lp-lime);
  box-shadow: 0 0 28px var(--lp-lime-glow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ag-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px var(--lp-lime-glow), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ag-auth-foot {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--lp-muted);
}
.ag-auth-foot a {
  color: var(--lp-lime);
  font-weight: 600;
}
.ag-auth-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .ag-auth-card { padding: 1.5rem 1.25rem; }
  .ag-auth-card h1 { font-size: 1.4rem; }
}
