:root {
  --color-green: #AFCD36;
  --color-cream: #EDF1E4;
  --color-offwhite: #F8F9F5;
  --color-orange: #EB9F25;
  --color-gray: #D1D6BE;
  --color-title-dark: #3B721E;
  --color-text: #292929;
  --color-text-gray: #545454;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-title-dark);
  color: var(--color-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* Background photo of the átrio, with a soft brand-toned overlay */
.wifi-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(59, 114, 30, 0.82) 0%, rgba(41, 41, 41, 0.78) 100%),
    url('../img/carrossel-atrio.png');
  background-size: cover;
  background-position: center;
}

.wifi-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Header */
.wifi-header {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0.5rem;
}

.wifi-logo {
  width: 9rem;
  filter: brightness(0) invert(1);
}

/* Main / card */
.wifi-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wifi-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--color-offwhite);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  text-align: center;
}

.wifi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-green);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-title-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.wifi-title {
  margin: 0 0 0.6rem;
  color: var(--color-title-dark);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
}

.wifi-subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-text-gray);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Form */
.wifi-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.wifi-label {
  margin-top: 0.85rem;
  color: var(--color-text-gray);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wifi-input {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-gray);
  border-radius: 0.6rem;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

.wifi-input:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 1px;
}

.wifi-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--color-text-gray);
  font-size: 0.78rem;
  line-height: 1.4;
}

.wifi-checkbox input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-green);
}

.wifi-submit {
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
  width: 100%;
  border: none;
  border-radius: 2rem;
  background: var(--color-orange);
  color: var(--color-offwhite);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.wifi-submit:hover {
  opacity: 0.92;
}

.wifi-submit:active {
  transform: scale(0.98);
}

/* Success state */
.wifi-success {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wifi-success-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.wifi-success-title {
  margin: 0 0 0.5rem;
  color: var(--color-title-dark);
  font-weight: 800;
  font-size: 1.3rem;
}

.wifi-success-text {
  margin: 0;
  color: var(--color-text-gray);
  font-size: 0.9rem;
}

/* Footer */
.wifi-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  color: var(--color-offwhite);
  font-size: 0.75rem;
  opacity: 0.85;
}

.wifi-footer-logo {
  width: 10rem;
  margin: 0 auto 0.6rem;
}

@media (min-width: 576px) {
  .wifi-card {
    padding: 2.5rem 2.5rem;
  }

  .wifi-title {
    font-size: 1.75rem;
  }
}
