.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 50%, #e8f0fe 100%);
  background-attachment: fixed;
}

.auth-marquee {
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #eff6ff 50%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.marquee-track-services {
  animation: marquee-scroll 28s linear infinite;
}

.marquee-badge-service {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #93c5fd;
}

.auth-alert-marquee {
  width: 100%;
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #fff7ed 100%);
  border-bottom: 1px solid #fdba74;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.1);
}

.marquee-track-alert {
  animation: marquee-scroll 32s linear infinite;
}

.auth-alert-marquee .marquee-group {
  color: #9a3412;
}

.auth-alert-marquee .marquee-group strong {
  color: #c2410c;
}

.auth-alert-marquee .marquee-sep {
  background: #fdba74;
}

.auth-alert-marquee .marquee-badge-free {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.auth-alert-marquee .marquee-badge-paid {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-weight: 700;
}

.auth-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: start;
}

.auth-container-single {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-brand p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-field input {
  padding: 0.75rem 0.9rem;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
  margin-top: 0.25rem;
}

.auth-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-forgot {
  margin: -0.35rem 0 0;
  text-align: right;
  font-size: 0.85rem;
}

.auth-forgot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.auth-back-btn {
  display: flex;
  text-align: center;
  text-decoration: none;
  justify-content: center;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.auth-services {
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f0f7ff);
}

.auth-services h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.services-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.services-list-icons li::before {
  display: none;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.service-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.otp-sent-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.otp-input {
  letter-spacing: 0.35em;
  font-size: 1.1rem !important;
  text-align: center;
}

.auth-otp-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link-muted {
  color: var(--text-muted);
}

.auth-services-note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-greeting {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.user-greeting strong {
  color: var(--text);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-logout:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
  }

  .auth-services {
    order: -1;
  }
}
