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

html, body {
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
}

/* BACKGROUND */
body {
  background:
    radial-gradient(
      at 30% 30%,
      #052F82 0%,
      #3F1485 45%,
      #1b1f3a 70%,
      #0b0f24 100%
    );
}

/* WRAPPER */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* GLASS CARD */
.glass-card {
  width: 100%;
  max-width: 460px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );

  backdrop-filter: blur(20px) saturate(120%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);

  padding: 42px 28px 36px;

  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1);
}

/* LOGO */
.logo-meta {
  max-width: 180px;
  display: block;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

/* INPUTS */
.input-group {
  margin-bottom: 16px;
  position: relative;
}

.input-group input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);

  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-group input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}

/* ERROR */
.error {
  display: none;
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 6px;
}

.input-group.invalid .error {
  display: block;
}

.input-group.invalid input {
  border-color: #ff6b6b;
}

/* PHONE */
.phone-wrapper {
  display: flex;
  gap: 8px;
}

.custom-select {
  width: 90px;
  height: 50px;

  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.custom-select .options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;

  background: rgba(15, 20, 40, 0.96);
  backdrop-filter: blur(12px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  list-style: none;
  padding: 6px 0;
  display: none;
  z-index: 10;
}

.custom-select .options li {
  padding: 8px 10px;
  text-align: center;
  transition: background 0.25s ease;
}

.custom-select .options li:hover {
  background: rgba(255, 255, 255, 0.15);
}

.custom-select.open .options {
  display: block;
}

/* BUTTON */
.btn.primary {
  width: 100%;
  height: 52px;
  margin-top: 6px;

  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;

  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  box-shadow:
    0 18px 40px rgba(59, 130, 246, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 55px rgba(59, 130, 246, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* FOOTER */
.footer-text {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-text a {
  color: #93c5fd;
  text-decoration: none;
}

/* ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   BOTÃO VOLTAR – FORA DO CARD
============================ */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;

  width: 74px;
  height: 44px;

  border: none;
  outline: none;

  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #ffffff,
    #e8f0ff
  );;
  color: var(--brand-blue);
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.35);;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover (desktop) */
.back-btn:hover {
  background: linear-gradient(
    135deg,
    #ffffff,
    #e8f0ff
  );;
  color: var(--brand-blue);
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.35);
  transform: translateY(+4px);
  transition-duration: 0.8s;
}

/* Clique */
.back-btn:active {
  transform: scale(0.94);
}

