/* frontend/public/css/login.css */
/* 80s / Early 90s Synthwave Neon Arcade Login & Public Legal Footer Stylesheet */

.login-layout *,
.login-layout *::before,
.login-layout *::after,
.public-legal-modal-root *,
.public-legal-modal-root *::before,
.public-legal-modal-root *::after {
  box-sizing: border-box;
}

.login-layout {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 0 28px 0;
  overflow: visible;
}

/* =========================================================
   1. ARCADE MARQUEE HEADER
   ========================================================= */

.login-brand-header {
  margin: 14px 0 20px 0;
  text-align: center;
}

.arcade-cabinet-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.login-brand-sub {
  margin: 6px 0 0 0;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

/* =========================================================
   2. LIVE MAINTENANCE ADMIN-ONLY BANNER
   ========================================================= */

.login-maint-banner {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(244, 63, 94, 0.16);
  border: 1.5px solid #f43f5e;
  text-align: center;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.25);
}

.login-maint-banner.is-visible {
  display: block;
}

.login-maint-title {
  font-family: monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.login-maint-desc {
  margin: 0 0 8px 0;
  font-size: 0.75rem;
  color: #f8fafc;
  line-height: 1.4;
}

.login-maint-link {
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  color: #00f0ff;
  text-decoration: underline;
}

/* =========================================================
   3. DIVIDERS, FORM CARD & LINKS
   ========================================================= */

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
}

.login-divider span {
  padding: 0 12px;
}

.login-card {
  margin-bottom: 6px;
}

.signup-prompt-row {
  text-align: center;
  margin-top: 18px;
  font-size: 0.82rem;
}

.signup-prompt-text {
  color: var(--text-muted);
}

.signup-link {
  margin-left: 6px;
}

.btn-decline-push {
  margin-top: 14px;
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

/* =========================================================
   4. PUBLIC COMPLIANCE FOOTER & LEGAL MODAL
   ========================================================= */

.login-compliance-footer {
  margin-top: 24px;
  padding: 16px 10px 12px 10px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  text-align: center;
}

.compliance-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.compliance-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.compliance-dot {
  color: #64748b;
  font-size: 0.75rem;
}

.compliance-copy {
  font-family: monospace, sans-serif;
  font-size: 0.68rem;
  color: #64748b;
}

/* Public Legal Modal */
.public-legal-modal-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.public-legal-modal-root.is-open {
  display: block;
}

.public-legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 14, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.public-legal-card {
  width: 100%;
  max-width: 410px;
  background: linear-gradient(160deg, #1b0a38 0%, #090514 100%);
  border: 2px solid #00f0ff;
  border-radius: 20px;
  padding: 18px 16px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.35);
}

.public-legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.public-legal-header h3 {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  color: #00f0ff;
}

.public-legal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #ff007f;
  background: rgba(255, 0, 127, 0.18);
  color: #ffffff;
  cursor: pointer;
}

.public-legal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 10px;
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  color: #cbd5e1;
}

.public-legal-badge {
  color: #00ff66;
  font-weight: 900;
}

.public-legal-scroll {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.55;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
  text-align: left;
}

.public-legal-scroll p {
  margin: 0 0 10px 0;
}

.public-legal-scroll p:last-child {
  margin-bottom: 0;
}

.public-legal-scroll strong {
  color: #fde047;
}

.public-legal-scroll a {
  color: #00f0ff;
}

/* =========================================================
   5. OAUTH LOGIN-CALLBACK SPECIFIC STYLES
   ========================================================= */

.callback-container {
  justify-content: center;
  text-align: center;
}

.callback-loading-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 28px 20px;
  text-align: center;
}

.callback-spinner-icon {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.65));
  animation: pulse 1.5s infinite;
}

.callback-title {
  margin: 0 0 8px 0;
  font-family: monospace, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.callback-title span {
  color: #ff007f;
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.85);
}

.callback-subtext {
  margin: 0;
  font-family: monospace, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* First-Time Google OAuth Legal Gate Card */
.callback-legal-card {
  display: none;
  width: 100%;
  max-width: 410px;
  margin: auto;
  text-align: left;
}

.callback-legal-title {
  margin: 6px 0 8px 0;
  font-family: monospace, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 1px;
}

.callback-legal-desc {
  margin: 0 0 18px 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.callback-eula-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
}

.callback-eula-checkbox {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #00ff66;
  cursor: pointer;
}

.callback-eula-label {
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: #cbd5e1 !important;
  line-height: 1.45;
}

.callback-inline-link {
  background: none;
  border: none;
  padding: 0;
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.callback-eula-error {
  margin-bottom: 12px;
}

.callback-submit-btn {
  margin-top: 16px;
}

/* =========================================================
   6. ONBOARDING LEGAL & EULA MODAL SPECIFIC STYLES
   ========================================================= */

.onboarding-card {
  margin-top: 6px;
}

.onboarding-eula-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.onboarding-eula-btn-wrap {
  flex: 1;
}

.onboarding-eula-btn {
  padding: 11px 14px;
  font-size: 0.84rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.onboarding-eula-btn.is-accepted {
  color: var(--brand-green);
  border-color: var(--brand-green);
  background: rgba(0, 255, 102, 0.14);
  box-shadow: 0 4px 0 #065f46, 0 0 14px rgba(0, 255, 102, 0.25);
}

.onboarding-eula-error {
  margin-bottom: 12px;
}

.onboarding-continue-btn {
  margin-top: 10px;
}

.modal-overlay.is-open {
  display: flex;
}

.eula-end-marker {
  margin: 28px 0 8px 0;
  text-align: center;
  font-family: monospace, sans-serif;
  font-weight: 900;
  color: var(--brand-gold);
  letter-spacing: 1px;
}

.eula-scroll-reminder {
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-error);
  text-align: center;
  margin: 0 0 10px 0;
}

.eula-scroll-reminder.is-complete {
  color: var(--brand-green);
}
/* =========================================================
   7. SIGNUP PAGE SPECIFIC STYLES
   ========================================================= */

.label-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.label-action-row label {
  margin-bottom: 0;
}

.auto-gen-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--brand-blue);
  font-family: monospace, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.auto-gen-btn:active {
  transform: translateY(1px);
}

.verification-sent-box {
  display: none;
  text-align: center;
  padding: 18px 6px 10px 6px;
}

.verification-sent-box.is-visible {
  display: block;
}

.verification-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 102, 0.5));
}

.verification-title {
  margin: 0 0 10px 0;
  font-family: monospace, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-green);
  letter-spacing: 1px;
}

.verification-desc {
  margin: 0 0 20px 0;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.55;
}

.verification-login-btn {
  margin-top: 8px;
}
