:root {
  --auth-bg: radial-gradient(circle at top, rgba(13, 110, 253, 0.22), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(25, 135, 84, 0.2), transparent 45%),
    #030711;
  --auth-card-bg: rgba(15, 23, 42, 0.9);
  --auth-border: rgba(255, 255, 255, 0.08);
  --auth-text-muted: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--auth-bg);
  color: #f8f9ff;
}

.auth-shell {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.auth-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.25), transparent 55%);
  filter: blur(120px);
  opacity: 0.6;
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(13, 110, 253, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo {
  width: 56px;
  height: auto;
}

.auth-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
}

.auth-subtitle {
  margin: 0;
  color: var(--auth-text-muted);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.auth-card,
.auth-side {
  border-radius: 1.25rem;
  border: 1px solid var(--auth-border);
  background: var(--auth-card-bg);
  padding: 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.auth-card--narrow {
  max-width: 520px;
  margin: 0 auto;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.auth-card-lead {
  color: var(--auth-text-muted);
}

.auth-eyebrow {
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  background: rgba(3, 7, 17, 0.55);
  border: 1px solid var(--auth-border);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(99, 179, 237, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  background: rgba(3, 7, 17, 0.75);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.auth-links a {
  color: #77b0ff;
  text-decoration: none;
  font-weight: 500;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider span {
  display: inline-block;
  padding: 0 1rem;
  background: var(--auth-card-bg);
  color: var(--auth-text-muted);
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-alt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: #fff;
  text-align: left;
}

.social-btn__label {
  display: block;
  font-weight: 600;
}

.social-btn__meta {
  font-size: 0.85rem;
  color: var(--auth-text-muted);
}

.social-btn--google {
  border-color: rgba(66, 133, 244, 0.65);
}

.auth-side {
  background: rgba(3, 7, 17, 0.4);
}

.auth-side-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.auth-side-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--auth-text-muted);
}

.auth-side-foot {
  margin: 0;
  color: var(--auth-text-muted);
}

.auth-messages {
  margin-bottom: 1.5rem;
}

.auth-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--auth-text-muted);
  font-size: 0.85rem;
}

.auth-footer a {
  color: #8ec8ff;
}

.auth-field--checkbox .form-check-input {
  margin-right: 0.5rem;
}

.auth-field .form-text {
  color: rgba(255, 255, 255, 0.65);
}

.auth-separator {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.email-card {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 7, 17, 0.4);
  cursor: pointer;
}

.email-card input[type="radio"] {
  accent-color: #0d6efd;
}

.email-card__address {
  margin: 0;
  font-weight: 600;
}

.email-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auth-hint {
  margin-top: 1rem;
  color: var(--auth-text-muted);
}

.auth-card a.btn,
.auth-card button.btn {
  border-radius: 0.85rem;
}

@media (min-width: 992px) {
  .auth-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}
