/* =========================================================
   VARIÁVEIS
========================================================= */

:root {
  --green: #0f5d2f;
  --green-dark: #084522;
  --green-light: #eaf6ed;

  --yellow: #facc15;
  --yellow-light: #fff8d6;

  --cream: #f8f7ed;
  --white: #ffffff;

  --text: #17221a;
  --muted: #707870;
  --border: #e2e6df;

  --shadow:
    0 10px 30px rgba(15, 93, 47, 0.08);

  --radius: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: "Inter", sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 50% -20%,
      #fffef7 0%,
      var(--cream) 65%
    );

  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}


/* =========================================================
   FUNDO
========================================================= */

.bg-rings {
  position: fixed;
  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: -1;
}

.ring {
  position: absolute;

  width: 520px;
  height: 520px;

  border: 1px solid rgba(250, 204, 21, 0.2);

  border-radius: 50%;
}

.r1 {
  top: -390px;
  left: -170px;
}

.r2 {
  top: -330px;
  left: -110px;
}

.r3 {
  top: -270px;
  left: -50px;
}


/* =========================================================
   CONTAINER
========================================================= */

.shell {
  width: min(1120px, calc(100% - 32px));

  margin: 0 auto;

  padding: 18px 0 30px;
}


/* =========================================================
   TOPO
========================================================= */

.topbar {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;
}

.brand {
  display: flex;

  align-items: center;

  gap: 12px;
}

.brand__logo {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  color: white;

  background: var(--green);

  border-radius: 10px;

  box-shadow:
    0 5px 12px rgba(15, 93, 47, 0.2);
}

.brand__logo svg {
  width: 30px;
  height: 30px;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__eyebrow {
  display: inline-flex;

  width: fit-content;

  margin: 0 0 3px;

  padding: 3px 9px;

  color: white;

  background: var(--green);

  border-radius: 20px;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .06em;
}

.brand__text h1 {
  margin: 0;

  color: var(--green);

  font-family: "Fraunces", serif;

  font-size: 25px;

  line-height: 1;
}

.brand__sub {
  margin-top: 4px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}

.connection-time {
  display: flex;

  align-items: center;

  gap: 6px;

  padding: 7px 12px;

  border: 1px solid var(--border);

  background: white;

  border-radius: 30px;

  color: #656b66;

  font-size: 10px;
}

.clock-icon {
  font-size: 14px;
}


/* =========================================================
   PROGRESSO
========================================================= */

.signal-progress {
  display: flex;

  align-items: center;

  width: 100%;

  margin-bottom: 28px;
}

.signal-step {
  display: flex;

  align-items: center;

  gap: 7px;

  min-width: max-content;

  opacity: .45;

  transition: .25s ease;
}

.signal-step.active {
  opacity: 1;
}

.signal-number {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: white;

  background: #aeb6ae;

  font-size: 12px;
  font-weight: 800;
}

.signal-step.active .signal-number {
  background: var(--green);
}

.signal-step strong {
  display: block;

  color: #1d241f;

  font-size: 11px;
}

.signal-step small {
  display: block;

  margin-top: 1px;

  color: #858b86;

  font-size: 8px;
}

.signal-bars {
  height: 24px;

  display: flex;

  align-items: end;

  gap: 2px;
}

.signal-bars i {
  display: block;

  width: 4px;

  border-radius: 3px;

  background: #d4d9d4;
}

.signal-bars i:nth-child(1) {
  height: 7px;
}

.signal-bars i:nth-child(2) {
  height: 14px;
}

.signal-bars i:nth-child(3) {
  height: 21px;
}

.signal-step.active .signal-bars i:nth-child(1),
.signal-step.active .signal-bars i:nth-child(2),
.signal-step.active .signal-bars i:nth-child(3) {
  background: var(--green);
}

.progress-line {
  flex: 1;

  height: 1px;

  margin: 0 12px;

  border-top: 2px dotted #c8cec8;
}


/* =========================================================
   GRID PRINCIPAL
========================================================= */

.content-grid {
  display: flex;

  justify-content: center;

  width: 100%;
}

.left-column {
  width: min(100%, 570px);
}

.left-column,
.right-column {
  min-width: 0;
}


/* =========================================================
   CARDS
========================================================= */

.card {
  overflow: hidden;

  background: white;

  border: 1px solid #e4e8e2;

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}


/* =========================================================
   CARD DE CADASTRO
========================================================= */

.card-header {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 17px 20px;

  color: white;

  background: var(--green);
}

.header-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.4);

  border-radius: 50%;
}

.header-icon svg {
  width: 25px;
  height: 25px;
}

.card-header h2 {
  margin: 0;

  font-size: 17px;

  line-height: 1.2;
}

.card-header p {
  margin: 4px 0 0;

  color: rgba(255,255,255,.8);

  font-size: 10px;
}

.card-body {
  padding: 22px 20px 18px;
}


/* =========================================================
   CAMPOS
========================================================= */

.field {
  display: block;

  margin-bottom: 15px;
}

.field > span {
  display: block;

  margin-bottom: 6px;

  color: #4f5751;

  font-size: 9px;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .04em;
}

.field input {
  width: 100%;

  height: 43px;

  padding: 0 13px;

  color: var(--text);

  background: white;

  border: 1px solid #dce1dc;

  border-radius: 8px;

  outline: none;

  font-size: 12px;

  transition: .2s ease;
}

.field input::placeholder {
  color: #a4aaa5;
}

.field input:focus {
  border-color: var(--green);

  box-shadow:
    0 0 0 3px rgba(15, 93, 47, .08);
}

.password-wrapper {
  position: relative;
}

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

.show-password {
  position: absolute;

  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  width: 28px;
  height: 28px;

  border: 0;

  background: transparent;

  color: #89918b;

  font-size: 13px;
}


/* =========================================================
   CHECKBOXES
========================================================= */

.check {
  display: flex;

  align-items: flex-start;

  gap: 8px;

  margin: 12px 0;

  color: #525a54;

  font-size: 10px;

  line-height: 1.45;
}

.check input {
  flex: 0 0 auto;

  width: 16px;
  height: 16px;

  margin: 0;

  accent-color: var(--green);
}

.check strong {
  color: #7b817c;

  font-weight: 500;
}

.link-inline {
  padding: 0;

  border: 0;

  background: transparent;

  color: #525a54;

  text-decoration: underline;

  font-size: inherit;

  font-weight: 400;

  line-height: inherit;
}

.link-inline:hover {
  color: var(--green);
}


/* =========================================================
   ERRO
========================================================= */

.error {
  margin: 10px 0;

  padding: 9px 11px;

  color: #a82929;

  background: #fff0f0;

  border: 1px solid #ffd2d2;

  border-radius: 7px;

  font-size: 10px;
}


/* =========================================================
   BOTÕES
========================================================= */

.btn-primary {
  width: 100%;

  min-height: 44px;

  display: flex;

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

  gap: 9px;

  margin-top: 16px;

  padding: 11px 16px;

  color: white;

  background: var(--green);

  border: 0;

  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;

  transition: .2s ease;
}

.btn-primary:hover {
  background: var(--green-dark);

  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: .6;

  cursor: not-allowed;

  transform: none;
}

.wifi-symbol {
  font-size: 18px;
}


/* =========================================================
   AVISOS
========================================================= */

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  margin-top: 9px;

  color: #9aa19c;
  font-size: 8px;
  font-weight: 400;
}

.security-dot {
  width: 5px;
  height: 5px;

  background: #36b879;
  border-radius: 50%;
}
.privacy-note {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  margin-top: 13px;

  padding: 9px;

  color: #3e8060;

  background: #effbf3;

  border: 1px solid #c7efda;

  border-radius: 7px;

  text-align: center;

  font-size: 8px;
}

.privacy-note strong {
  width: 15px;
  height: 15px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: white;

  background: #35a269;
}


/* =========================================================
   BANNER DIREITO
========================================================= */

.right-column {
  display: flex;

  flex-direction: column;

  gap: 14px;
}

.welcome-banner {
  position: relative;

  overflow: hidden;

  padding: 22px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #0f6b36,
      #0a4e29
    );

  border-radius: var(--radius);

  box-shadow:
    0 10px 25px rgba(15, 93, 47, .15);
}

.welcome-banner::after {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  right: -80px;
  bottom: -100px;

  border: 2px solid rgba(250,204,21,.18);

  border-radius: 50%;
}

.yellow-badge,
.ad-badge {
  display: inline-flex;

  padding: 5px 9px;

  color: #3d3800;

  background: var(--yellow);

  border-radius: 20px;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: .04em;
}

.welcome-banner h2 {
  position: relative;
  z-index: 1;

  margin: 12px 0 7px;

  font-family: "Fraunces", serif;

  font-size: 24px;

  line-height: 1.02;
}

.welcome-banner p {
  position: relative;
  z-index: 1;

  max-width: 420px;

  margin: 0;

  color: rgba(255,255,255,.78);

  font-size: 9px;

  line-height: 1.45;
}

.stats {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

  margin-top: 18px;
}

.stats > div {
  padding: 8px;

  background: rgba(255,255,255,.08);

  border: 1px solid rgba(255,255,255,.08);

  border-radius: 8px;
}

.stats strong {
  display: block;

  font-family: "Fraunces", serif;

  font-size: 17px;
}

.stats small {
  display: block;

  margin-top: 2px;

  color: rgba(255,255,255,.7);

  font-size: 7px;
}

.stats .stat-highlight {
  color: #1d2900;

  background: var(--yellow);

  border-color: var(--yellow);
}

.stats .stat-highlight small {
  color: #5c5700;
}


/* =========================================================
   INFO WI-FI
========================================================= */

.info-card {
  overflow: hidden;

  background: white;

  border: 1px solid #e1e5df;

  border-radius: var(--radius);

  box-shadow: var(--shadow);
}

.info-header {
  display: flex;

  align-items: center;

  gap: 9px;

  padding: 13px;

  border-bottom: 1px solid #e7eae6;
}

.info-icon {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: white;

  background: #161b17;

  border-radius: 7px;

  font-size: 8px;
  font-weight: 800;
}

.info-header strong {
  display: block;

  font-size: 10px;
}

.info-header small {
  display: block;

  margin-top: 2px;

  color: #909791;

  font-size: 7px;
}

.info-content {
  padding: 13px;
}

.info-status-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;
}

.status-box {
  padding: 11px;

  border-radius: 9px;
}

.status-box.yellow {
  background: #fffbee;

  border: 1px solid #f8e6a1;
}

.status-box.green {
  background: #effbf3;

  border: 1px solid #c7edd4;
}

.status-box span {
  display: block;

  color: #8d928d;

  font-size: 7px;
  font-weight: 800;
}

.status-box strong {
  display: block;

  margin-top: 4px;

  color: var(--green);

  font-size: 13px;
}

.status-box small {
  display: block;

  margin-top: 2px;

  color: #9a9f9b;

  font-size: 7px;
}

.how-title {
  margin: 14px 0 7px;

  color: #777e78;

  font-size: 7px;
  font-weight: 800;
}

.how-step {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 6px;

  padding: 7px 8px;

  background: #fafbfa;

  border: 1px solid #edf0ed;

  border-radius: 7px;
}

.how-step > span {
  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  color: white;

  background: var(--green);

  border-radius: 50%;

  font-size: 8px;
  font-weight: 800;
}

.how-step strong {
  display: block;

  font-size: 8px;
}

.how-step small {
  display: block;

  margin-top: 2px;

  color: #929892;

  font-size: 6.5px;
}

.info-footer {
  margin: 10px 0 0;

  color: #969c97;

  font-size: 6.5px;

  text-align: center;
}


/* =========================================================
   ANÚNCIO
========================================================= */

.ad-card {
  padding: 18px;
}

.ad-header {
  margin-bottom: 12px;
}

.ad-header p {
  margin: 7px 0 0;

  color: #777e78;

  font-size: 9px;
}

.ad-box {
  overflow: hidden;

  border: 1px solid #e1e5df;

  border-radius: 12px;

  background: #fff;
}

.ad-image-wrapper {
  width: 100%;

  height: 170px;

  background: #f2f4ef;
}

.ad-image-wrapper img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.ad-box__body {
  padding: 15px;
}

.ad-box__company {
  margin: 0 0 5px;

  color: var(--green);

  font-size: 9px;
  font-weight: 800;
}

.ad-box h3 {
  margin: 0 0 7px;

  font-family: "Fraunces", serif;

  font-size: 21px;
}

.muted {
  color: var(--muted);

  font-size: 10px;

  line-height: 1.5;
}

.btn-secondary {
  display: inline-flex;

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

  min-height: 38px;

  margin-top: 9px;

  padding: 8px 14px;

  color: var(--green);

  background: var(--yellow-light);

  border: 1px solid #f2dd76;

  border-radius: 8px;

  text-decoration: none;

  font-size: 9px;
  font-weight: 800;
}


/* =========================================================
   CONECTANDO
========================================================= */

.card--center {
  min-height: 260px;

  display: flex;

  flex-direction: column;

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

  padding: 30px;

  text-align: center;
}

.card--center h2 {
  margin: 16px 0 5px;

  color: var(--green);

  font-family: "Fraunces", serif;

  font-size: 22px;
}

.spinner {
  width: 60px;
  height: 60px;

  border: 5px solid #e9eee9;

  border-top-color: var(--green);

  border-right-color: var(--yellow);

  border-radius: 50%;

  animation: spin 1s linear infinite;
}

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


/* =========================================================
   SUCESSO
========================================================= */

.check-mark {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  color: white;

  background: var(--green);

  border-radius: 50%;

  font-size: 36px;
  font-weight: 800;

  box-shadow:
    0 10px 20px rgba(15,93,47,.2);
}

.success-card {
  overflow: hidden;
  padding: 0;

  background: var(--green);

  border: 0;
  border-radius: 18px;

  box-shadow:
    0 12px 30px rgba(15, 93, 47, 0.18);
}

.success-content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 38px 25px;

  color: white;

  text-align: center;
}

/* decoração suave */
.success-content::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: -90px;
  bottom: -120px;

  border: 2px solid rgba(250, 204, 21, 0.18);

  border-radius: 50%;
}

.success-check {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  margin-bottom: 16px;

  color: var(--green);

  background: white;

  border-radius: 50%;

  font-size: 25px;
  font-weight: 800;

  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.12);
}

.success-badge {
  position: relative;
  z-index: 1;

  display: inline-flex;

  padding: 5px 10px;

  color: #3d3800;

  background: var(--yellow);

  border-radius: 20px;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: .04em;
}

.success-card h2 {
  position: relative;
  z-index: 1;

  margin: 13px 0 8px;

  color: white;

  font-family: "Fraunces", serif;

  font-size: 25px;
  line-height: 1.1;
}

.success-card p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: rgba(255, 255, 255, 0.85);

  font-size: 11px;
  font-weight: 500;
}


/* =========================================================
   RODAPÉ
========================================================= */

.foot {
  display: flex;

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

  gap: 7px;

  margin-top: 15px;

  color: #858b86;

  font-size: 8px;

  text-align: center;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: grid;

  place-items: center;

  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;

  inset: 0;

  background: rgba(11, 28, 18, .5);

  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  z-index: 2;

  width: min(570px, 100%);

  max-height: calc(100vh - 36px);

  overflow-y: auto;

  padding: 25px;

  background: white;

  border-radius: 18px;

  box-shadow:
    0 25px 70px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;

  top: 13px;
  right: 14px;

  width: 30px;
  height: 30px;

  border: 0;

  background: transparent;

  color: #6f766f;

  font-size: 25px;

  line-height: 1;
}

.modal-title-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  margin: 0 auto 9px;

  background: var(--green-light);

  border-radius: 50%;

  font-size: 18px;
}

.modal__panel h3 {
  margin: 0 0 18px;

  color: var(--green);

  font-family: "Fraunces", serif;

  font-size: 23px;

  text-align: center;
}

.modal__body {
  display: flex;

  flex-direction: column;

  gap: 13px;
}

.term-item {
  display: flex;

  gap: 10px;
}

.term-number {
  width: 27px;
  height: 27px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  color: white;

  background: var(--green);

  border-radius: 50%;

  font-size: 10px;
  font-weight: 800;
}

.term-item strong {
  color: var(--green);

  font-size: 10px;
}

.term-item p {
  margin: 3px 0 0;

  color: #737a74;

  font-size: 9px;

  line-height: 1.5;
}

.terms-warning {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 3px;

  padding: 11px;

  background: #fffbed;

  border: 1px solid #f1dc77;

  border-radius: 8px;

  color: #6e671b;

  font-size: 8px;

  line-height: 1.4;
}


/* =========================================================
   HIDDEN
========================================================= */

[hidden] {
  display: none !important;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 800px) {

  .shell {
    width: min(100% - 22px, 550px);

    padding-top: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

  .connection-time {
    display: none;
  }

  .brand__text h1 {
    font-size: 21px;
  }

  .signal-progress {
    overflow-x: auto;

    padding-bottom: 5px;
  }

  .signal-step {
    flex-shrink: 0;
  }

  .progress-line {
    min-width: 25px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-column {
    order: 2;
  }

  .left-column {
    order: 1;
  }

  .welcome-banner h2 {
    font-size: 22px;
  }

  .stats strong {
    font-size: 15px;
  }
}


@media (max-width: 430px) {

  .shell {
    width: calc(100% - 14px);
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__text h1 {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .signal-progress {
    margin-bottom: 16px;
  }

  .signal-bars {
    display: none;
  }

  .signal-step small {
    display: none;
  }

  .card-body {
    padding: 18px 15px;
  }

  .card-header {
    padding: 15px;
  }

  .welcome-banner {
    padding: 18px;
  }

  .welcome-banner h2 {
    font-size: 20px;
  }

  .stats {
    gap: 5px;
  }

  .stats > div {
    padding: 7px 5px;
  }

  .modal__panel {
    padding: 20px 17px;
  }
}