@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap");

:root {
  --accent: #00d4e8;
  --accent-dark: #00b4c8;
  --accent-dim: rgba(0, 212, 232, 0.12);
  --accent-glow: rgba(0, 212, 232, 0.18);
  --signal-red: #e84855;
  --signal-amber: #f5a623;
  --bg: #090c0f;
  --bg-panel: #0f1419;
  --bg-surface: #161d25;
  --bg-hover: #1c2530;
  --surface: #0f1419;
  --input-bg: #161d25;
  --border: rgba(0, 212, 232, 0.14);
  --border-hard: rgba(0, 212, 232, 0.28);
  --border-focus: rgba(0, 212, 232, 0.55);
  --border-panel: rgba(255, 255, 255, 0.05);
  --text: #e8edf2;
  --muted: #7a8fa6;
  --faint: #3d5068;
  --font-display: -apple-system, "Inter", sans-serif;
  --font-mono: -apple-system, "Manrope", monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

body {
  font-family: var(--font-display);
  background: var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-image:
    linear-gradient(rgba(0, 212, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 232, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.shell {
  display: grid;
  grid-template-columns: 1fr 420px;
  width: min(900px, 100%);
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeUp 0.45s cubic-bezier(0.22, 0.68, 0, 1.2) both;
}

.panel-left {
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  border-right: 1px solid var(--border);
}

.panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 55% at 20% 30%,
      rgba(0, 212, 232, 0.07) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 80% 80%,
      rgba(0, 180, 200, 0.05) 0%,
      transparent 65%
    );
  pointer-events: none;
}

.panel-left::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 232, 0.08);
}

.left-brand {
  position: relative;
  z-index: 1;
}

.left-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.left-brand .wordmark span {
  color: var(--accent);
}

.left-brand .tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.left-body {
  position: relative;
  z-index: 1;
}

.left-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.03em;
}

.left-body h2 em {
  font-style: normal;
  color: var(--accent);
}

.left-body p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 280px;
}

.feature-list {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.feature-list li .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-glow);
}

.left-footer {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.panel-right {
  background: var(--surface);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.form-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.google-btn {
  margin-top: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
}

.google-btn:hover {
  border-color: var(--border-hard);
  color: var(--text);
  background: var(--bg-hover);
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}

input::placeholder {
  color: var(--faint);
  font-family: var(--font-mono);
}

input:focus {
  border-color: var(--border-focus);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--faint);
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.15s;
}

.toggle-password:hover {
  color: var(--accent);
}

.forgot-link {
  text-align: right;
  margin-top: -6px;
}

.forgot-link a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.forgot-link a:hover {
  color: #fff;
}

.submit-btn {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.12s,
    box-shadow 0.18s;
}

.submit-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.submit-btn:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 6px;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.auth-footer a:hover {
  color: #fff;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}

.back-home:hover {
  color: var(--accent);
}

.messages {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

#error {
  color: var(--signal-red);
}
#success {
  color: var(--accent);
}

#nameGroup {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}
#nameSurname {
  flex: 1;
}

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

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

.statusBox {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease-out;
  margin-bottom: 15px;
}

.statusBox.error {
  background-color: #fee;
  border-left-color: #dc2626;
  color: #7f1d1d;
}

.statusBox.error::before {
  content: "";
  font-weight: bold;
  font-size: 18px;
  color: #dc2626;
  flex-shrink: 0;
}

.statusBox.success {
  background-color: #efe;
  border-left-color: #16a34a;
  color: #1b4332;
}

.statusBox.success::before {
  content: "";
  font-weight: bold;
  font-size: 18px;
  color: #16a34a;
  flex-shrink: 0;
}

.statusBox.info {
  background-color: #efe;
  border-left-color: #0891b2;
  color: #0c4a6e;
}

.statusBox.info::before {
  content: "";
  font-weight: bold;
  font-size: 18px;
  color: #0891b2;
  flex-shrink: 0;
}

#closeSMsg {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  margin: 0;
  width: 30px;
  height: 30px;
}

#closeSMsg:hover {
  color: var(--faint);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step {
  display: none;
  animation: fadeUp .25s ease;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.step.active {
  display: block;
}

.step-desc {
  margin-bottom: 24px;
  color: var(--muted);
}

.step-indicator {
  margin-bottom: 25px;
}

.step-progress {
  height: 4px;
  width: 16.66%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .3s ease;
}

#stepCounter {
  display: block;
  margin-top: 10px;
  font-size: .75rem;
  color: var(--muted);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

#nextBtn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

#prevBtn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

#submitBtn {
  flex: 1;
  padding: 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

#nextBtn:hover,
#prevBtn:hover,
#submitBtn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  animation: pulse 1s ease infinite;
}

#reviewContainer {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  line-height: 1.7;
}

.success-card p {
  margin: 0;
  color: var(--muted);
}

.success-card p + p {
  margin-top: 12px;
}

.success-page .submit-btn {
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.success-page .back-home {
  margin-top: 5px;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  animation: fadeUp 0.45s cubic-bezier(0.22, 0.68, 0, 1.2) both;
  overflow: hidden;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body .wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card-body .wordmark span {
  color: var(--accent);
}

.card-body h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card-body .description {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

#resetForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

#resetEmailButton {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.12s,
    box-shadow 0.18s;
}

#resetEmailButton:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

#resetEmailButton:active {
  transform: translateY(0);
}

#resetEmailButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card .divider {
  margin: 20px 0;
}

.card-footer {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.card-footer a:hover {
  color: #fff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .panel-left {
    padding: 36px 28px;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .panel-left::after {
    display: none;
  }

  .left-body {
    margin-top: 15px;
  }

  .left-body h2 {
    font-size: 1.5rem;
  }

  .left-body p {
    max-width: 100%;
  }

  .left-footer {
    margin-top: 15px;
  }

  .feature-list {
    margin-top: 20px;
    gap: 10px;
  }

  .panel-right {
    padding: 36px 28px;
  }

  .card {
    padding: 32px 24px;
  }

  .card-body h1 {
    font-size: 1.3rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}