/**
 * Provision — Auth & marketing pages
 */
.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-brand {
  background: linear-gradient(145deg, #2a2a2a 0%, #363636 45%, #4a1515 100%);
  color: var(--color-light);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 10, 10, 0.35) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.auth-brand__logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
  position: relative;
  z-index: 1;
}

.auth-brand__logo span {
  color: var(--color-accent);
}

.auth-brand__tagline {
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.auth-brand__features {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.auth-brand__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.auth-brand__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-theme-bar {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

.auth-main .dashboard-alerts,
.auth-main .container {
  width: 100%;
  max-width: 420px;
  margin-bottom: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-card__lead {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.auth-body .form-group {
  margin-bottom: 1.15rem;
}

.auth-body .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-body .form-group input[type='text'],
.auth-body .form-group input[type='email'],
.auth-body .form-group input[type='password'] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-body .form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ring);
}

.auth-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.12s ease;
  width: 100%;
}

.auth-body .btn:active {
  transform: scale(0.98);
}

.auth-body .btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--color-accent-ring);
}

.auth-body .btn-primary:hover {
  background: var(--color-accent-hover);
}

.auth-body .btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  width: auto;
}

.auth-body .btn-ghost:hover {
  background: var(--color-bg);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-checkbox input {
  width: auto;
  accent-color: var(--color-accent);
}

.auth-body .alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.auth-hero-only .auth-shell {
  grid-template-columns: 1fr;
}

.auth-hero-only .auth-brand {
  min-height: auto;
  padding: 2.5rem 2rem;
  text-align: center;
  align-items: center;
}

.auth-hero-only .auth-brand__tagline,
.auth-hero-only .auth-brand__features {
  margin-left: auto;
  margin-right: auto;
}

.auth-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.auth-hero-actions .btn {
  width: auto;
  min-width: 140px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .auth-brand__features {
    display: none;
  }

  .auth-main {
    padding: 1.5rem 1.25rem 2.5rem;
  }
}
