:root {
  --font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --screen-w: 1080px;
  --screen-h: 1920px;
  --lime: #7dde21;
  --green-dark: #05662b;
  --green-input: #064a22;
  --white: #ffffff;
  --form-width: 620px;
  --form-top: 318px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow: hidden;
  touch-action: manipulation;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  font-family: var(--font-family);
  background: var(--lime);
  color: var(--white);
  overflow: hidden;
}

#cadastro-app {
  position: absolute;
  width: var(--screen-w);
  height: var(--screen-h);
  overflow: hidden;
  transform-origin: top left;
}

.cadastro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.cadastro-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cadastro-form {
  position: absolute;
  top: var(--form-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--form-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.cadastro-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.cadastro-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.cadastro-input {
  width: 100%;
  min-height: 78px;
  padding: 16px 28px;
  border: 2px solid rgba(125, 222, 33, 0.85);
  border-radius: 14px;
  background: var(--green-input);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cadastro-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.cadastro-input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.cadastro-input.is-invalid {
  border-color: #ff8a8a;
}

.cadastro-checks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 0 8px;
}

.cadastro-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.cadastro-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  accent-color: var(--lime);
  cursor: pointer;
}

.cadastro-link {
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}

.cadastro-link:hover,
.cadastro-link:focus-visible {
  text-decoration: underline;
}

.cadastro-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #ff8a8a;
  color: #ffd4d4;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.cadastro-error[hidden] {
  display: none;
}

.cadastro-submit {
  align-self: center;
  min-width: 280px;
  min-height: 88px;
  padding: 0 56px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cadastro-submit:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cadastro-submit:active {
  transform: scale(0.98);
}

.cadastro-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cadastro-logo {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: auto;
  pointer-events: none;
}

.cadastro-success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  background: rgba(5, 102, 43, 0.92);
  text-align: center;
}

.cadastro-success[hidden] {
  display: none;
}

.cadastro-success-title {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  color: var(--lime);
}

.cadastro-success-text {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
}
