:root {
  color-scheme: dark;
}

html {
  overflow-x: clip;
}

body.sleek-home.pollsmax-auth-page {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--color-page-bg, #050608);
  color: var(--color-text-primary, #e2e8f0);
  min-height: 100vh;
  overflow-x: clip;
}

body.sleek-home.pollsmax-auth-page h1,
body.sleek-home.pollsmax-auth-page h2 {
  font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

body.sleek-home.pollsmax-auth-page #mainHeader {
  position: relative;
  z-index: 50;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  overflow: visible;
}

body.sleek-home.pollsmax-auth-page .sleek-home-header-logo {
  transform: scale(1.18) translateY(1px);
  transform-origin: left center;
}

body.sleek-home.pollsmax-auth-page footer {
  background: var(--color-surface-2, #0a0c10) !important;
  border-top: 1px solid rgba(51, 65, 85, 0.45) !important;
}

.pollsmax-auth-main {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 20px 96px;
}

.pollsmax-auth-card {
  background: rgba(15, 18, 24, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 14px;
  padding: 1.75rem 1.4rem 1.55rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pollsmax-auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.pollsmax-auth-lead {
  margin: 0 0 1.35rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pollsmax-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.pollsmax-auth-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}

.pollsmax-auth-field input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid rgba(71, 85, 105, 0.7);
  background: rgba(2, 6, 23, 0.55);
  color: #f1f5f9;
  padding: 0.7rem 0.8rem;
  font-size: 0.9375rem;
  outline: none;
}

.pollsmax-auth-field input:focus {
  border-color: rgba(129, 140, 248, 0.75);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.pollsmax-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.pollsmax-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.65rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.pollsmax-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pollsmax-auth-btn--primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.55);
}

.pollsmax-auth-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.pollsmax-auth-btn--google {
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  border-color: rgba(71, 85, 105, 0.75);
}

.pollsmax-auth-btn--google:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.95);
}

.pollsmax-auth-btn--danger {
  background: transparent;
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
}

.pollsmax-auth-btn--danger:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.1);
}

.pollsmax-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.95rem 0 0.15rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pollsmax-auth-divider::before,
.pollsmax-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(51, 65, 85, 0.7);
}

.pollsmax-auth-links {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
}

.pollsmax-auth-links a {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 600;
}

.pollsmax-auth-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.pollsmax-auth-msg {
  display: none;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pollsmax-auth-msg.is-visible {
  display: block;
}

.pollsmax-auth-msg--error {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.pollsmax-auth-msg--ok {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.pollsmax-auth-msg--info {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: #cbd5e1;
}

.pollsmax-account-card {
  max-width: 560px;
}

.pollsmax-account-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pollsmax-account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.6);
  flex-shrink: 0;
}

.pollsmax-account-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pollsmax-account-meta {
  min-width: 0;
}

.pollsmax-account-meta .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.2rem;
}

.pollsmax-account-meta .email {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  word-break: break-word;
}

.pollsmax-account-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.pollsmax-account-dl div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
}

.pollsmax-account-dl dt {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 600;
}

.pollsmax-account-dl dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.pollsmax-account-section {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}

.pollsmax-account-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pollsmax-account-section p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.pollsmax-account-section #accountPlanName {
  color: #f1f5f9;
  font-weight: 600;
}

.pollsmax-account-section .pollsmax-account-sub-meta {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.pollsmax-subscribe-main {
  max-width: 640px;
}

.pollsmax-subscribe-card {
  max-width: none;
}

.pollsmax-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.pollsmax-plan {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.9rem 0.95rem;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.35);
}

.pollsmax-plan h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.pollsmax-plan p {
  margin: 0 0 0.35rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.4;
  flex: 1;
}

.pollsmax-plan .pollsmax-auth-btn {
  margin-top: auto;
}

.pollsmax-subscription-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.pollsmax-subscription-error[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .pollsmax-account-dl div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .pollsmax-plan-grid {
    grid-template-columns: 1fr;
  }
}
