.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-deep);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-page {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-page-brand {
  text-align: center;
}

.auth-page-brand i {
  font-size: 36px;
  color: #ef4444;
  margin-bottom: 10px;
  display: block;
}

.auth-page-brand h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-page-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.auth-page-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.auth-page-home:hover {
  color: var(--text-primary);
}

.auth-slider-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 100%;
}

.auth-slider {
  display: flex;
  width: 200%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.auth-slider.is-register {
  transform: translateX(-50%);
}

.auth-panel {
  width: 50%;
  flex-shrink: 0;
  padding: 32px 28px;
  box-sizing: border-box;
}

.auth-switch {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-switch-link:hover {
  color: #bfdbfe;
}

.auth-card-head {
  margin-bottom: 22px;
}

.auth-card-head i {
  font-size: 24px;
  opacity: 0.9;
  margin-bottom: 10px;
  display: block;
}

.auth-card-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.auth-card-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.auth-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand i {
  font-size: 32px;
  opacity: 0.9;
  margin-bottom: 12px;
  display: block;
}

.auth-brand h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 8px;
}

.auth-input {
  margin-bottom: 4px;
}

.auth-submit {
  margin-top: 16px;
  padding: 12px;
}

.auth-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--text-primary);
}

/* Legal pages */
.legal-page {
  width: 100%;
  max-width: 760px;
  margin: 24px auto;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
}

.legal-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 16px;
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.legal-page section {
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a {
  color: #93c5fd;
}

.legal-page code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-active);
}

@media (max-width: 600px) {
  .legal-page {
    padding: 24px 20px;
  }
}

/* Public home page */
.public-body {
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 48px;
}

.home-page {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-hero {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.home-brand i {
  font-size: 40px;
  color: #ef4444;
  margin-bottom: 12px;
  display: block;
}

.home-brand h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
}

.home-tagline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  text-decoration: none;
}

.home-section {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
}

.home-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.home-section p,
.home-section li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.home-section ul,
.home-steps {
  padding-left: 20px;
  margin: 0;
}

.home-steps li {
  margin-bottom: 8px;
}

.home-section a {
  color: #93c5fd;
}

.home-contact {
  text-align: center;
}

.home-legal-links {
  margin-top: 12px;
  margin-bottom: 0;
}

.home-legal-links span {
  color: var(--text-muted);
  margin: 0 8px;
}

.auth-home-link {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13px;
}

.auth-home-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-home-link a:hover {
  color: var(--text-primary);
}

@media (max-width: 600px) {
  .auth-panel {
    padding: 24px 20px;
  }

  .home-hero,
  .home-section {
    padding: 24px 20px;
  }

  .home-brand h1 {
    font-size: 26px;
  }
}

.auth-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.auth-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-toast-success {
  border-color: rgba(34, 197, 94, 0.45);
}

.auth-toast-success i {
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 2px;
}
