@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
  --primary-blue: #2faeff;
  --theme-blue: #37dcff;
  --blue-deep: #1f88e8;
  --blue-mid: #24a8ea;
  --blue-soft: #30c8ee;
  --blue-glow: rgba(48, 200, 238, 0.2);
  --blue-glow-strong: rgba(31, 136, 232, 0.22);
  --blue-bar-gradient: linear-gradient(180deg, #1f88e8 0%, #26adeb 48%, #31caee 100%);
  --blue-footer-gradient: linear-gradient(180deg, #31caee 0%, #26adeb 52%, #1f88e8 100%);
  --bg-color: #f5fbff;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  filter: brightness(0.8);
}

.navbar {
  background-color: #26adeb;
  background-image: var(--blue-bar-gradient);
  padding: 1.5rem 2rem;
  box-shadow: 0 18px 34px -24px var(--blue-glow-strong);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f7fdff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}

.logo a:hover {
  filter: none;
}

.logo a:focus,
.logo a:focus-visible {
  outline: none;
}

.logo-mark {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  object-fit: contain;
  transform: scale(1.38);
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.logo-text {
  display: inline-block;
  line-height: 1;
}

.logo span {
  color: #ffffff;
}

.main-content {
  flex: 1;
}

/* Coming Soon Hero */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: #ffffff;
}

.hero h1 {
  font-size: 4rem;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 600;
  text-shadow: none;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Legal Pages */
.legal-container {
  max-width: 920px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 40px -24px rgba(31, 111, 255, 0.18);
  border: 1px solid rgba(52, 207, 231, 0.18);
}

.legal-container h1 {
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1px;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.no-break {
  white-space: nowrap;
}

.legal-container > p:first-of-type {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-container h2 {
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  border-bottom: 2px solid rgba(52, 207, 231, 0.28);
  padding-bottom: 0.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-container h3 {
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-container p, .legal-container ul {
  margin-bottom: 1rem;
}

.legal-container ul {
  padding-left: 2rem;
}

.legal-container li {
  margin-bottom: 0.5rem;
}

.placeholder {
  background-color: #fef3c7;
  color: #b45309;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
  font-size: 0.9em;
}

.footer {
  background-color: #26adeb;
  background-image: var(--blue-footer-gradient);
  color: #eaf8ff;
  text-align: center;
  padding: 2.5rem;
  margin-top: auto;
  box-shadow: 0 -16px 34px -24px var(--blue-glow-strong);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #f4fbff;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  color: rgba(244, 251, 255, 0.86);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .legal-container {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .legal-container h1 {
    font-size: 1.7rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .legal-container h2 {
    font-size: 1.1rem;
    line-height: 1.22;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .legal-container {
    margin: 1.5rem 0.75rem;
    padding: 1.25rem;
  }

  .legal-container h1 {
    font-size: 1.5rem;
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  .legal-container h2 {
    font-size: 1rem;
    line-height: 1.24;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background:
    radial-gradient(circle at 100% 0, rgba(52, 207, 231, 0.18) 0, rgba(52, 207, 231, 0) 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 251, 255, 0.98) 100%);
  color: var(--text-main);
  padding: 1.5rem 2rem;
  box-shadow: 0 -16px 35px rgba(31, 111, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 4px solid var(--blue-soft);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  max-width: 700px;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: var(--theme-blue);
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-mid) 55%, var(--blue-soft) 100%);
  color: #f8fdff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 10px 28px -14px var(--blue-glow-strong);
}

.cookie-btn:hover {
  opacity: 0.9;
  box-shadow: 0 14px 32px -14px var(--blue-glow);
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn.secondary {
  background-color: transparent;
  color: var(--text-muted);
  border: 2px solid #e2e8f0;
}

.cookie-btn.secondary:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.reset-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(47, 174, 255, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(55, 220, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
}

.reset-page::before,
.reset-page::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

.reset-page::before {
  width: 12rem;
  height: 12rem;
  top: 4rem;
  right: -4rem;
  background: rgba(47, 174, 255, 0.12);
}

.reset-page::after {
  width: 10rem;
  height: 10rem;
  left: -3rem;
  bottom: 3rem;
  background: rgba(55, 220, 255, 0.15);
}

.reset-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  display: grid;
  gap: 1.25rem;
}

.reset-shell.is-invalid,
.reset-shell.is-success {
  width: min(calc(100% - 1.5rem), 720px);
  min-height: calc(100vh - 228px);
  display: block;
}

.reset-shell.is-invalid .reset-card,
.reset-shell.is-success .reset-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.reset-shell.is-invalid .reset-alert,
.reset-shell.is-invalid .reset-actions,
.reset-shell.is-success .reset-success-panel {
  width: 100%;
}

.reset-hero-copy {
  padding: 1.25rem 0.35rem 0;
}

.reset-hero-copy h1 {
  font-size: clamp(2.2rem, 8vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #081a34;
  max-width: 11ch;
}

.reset-hero-copy p {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.reset-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.99) 100%);
  border: 1px solid rgba(47, 174, 255, 0.16);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.reset-card-header {
  display: grid;
  gap: 0.85rem;
}

.reset-card-header p {
  color: var(--text-muted);
}

.reset-badge {
  display: inline-flex;
  justify-self: start;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 174, 255, 0.12);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.reset-alert {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
}

.reset-alert strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.reset-alert p {
  color: inherit;
}

.reset-alert.is-info {
  background: rgba(47, 174, 255, 0.1);
  border-color: rgba(47, 174, 255, 0.18);
  color: #0d3b66;
}

.reset-alert.is-success {
  background: rgba(22, 163, 74, 0.11);
  border-color: rgba(22, 163, 74, 0.18);
  color: #166534;
}

.reset-alert.is-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.reset-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.form-field input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.form-field input::placeholder {
  color: #94a3b8;
}

.form-field input:focus {
  outline: none;
  border-color: rgba(31, 136, 232, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(47, 174, 255, 0.14);
  transform: translateY(-1px);
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.reset-inline-error {
  margin-top: -0.1rem;
  color: #b91c1c;
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  width: 100%;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, opacity 0.18s;
}

.primary-button {
  margin-top: 0.35rem;
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue-mid) 55%, var(--blue-soft) 100%);
  color: #f8fdff;
  box-shadow: 0 18px 32px -18px var(--blue-glow-strong);
}

.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(31, 136, 232, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, opacity 0.18s;
}

.primary-button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.secondary-button:hover {
  filter: brightness(0.99);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.88;
}

.button-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(248, 253, 255, 0.35);
  border-top-color: #ffffff;
  animation: button-spin 0.8s linear infinite;
  display: none;
}

.primary-button.is-loading .button-spinner {
  display: inline-block;
}

.reset-success-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.14);
  color: #166534;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.reset-success-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 16px 28px -18px rgba(22, 163, 74, 0.65);
}

.reset-success-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: #ffffff;
}

.reset-success-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.reset-success-copy p {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #166534;
}

.reset-actions {
  margin-top: 1.25rem;
}

.reset-success-actions {
  margin-top: 1rem;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .reset-shell {
    width: min(100% - 1rem, 42rem);
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .reset-shell.is-invalid,
  .reset-shell.is-success {
    width: min(100% - 1rem, 42rem);
    min-height: auto;
  }

  .reset-card {
    border-radius: 20px;
    padding: 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (min-width: 900px) {
  .reset-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    align-items: center;
    gap: 2.5rem;
    min-height: calc(100vh - 228px);
  }

  .reset-hero-copy {
    padding-right: 1rem;
  }
}
