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

body.pf-cadastro-cliente {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #263238;
  background: #f3f5f6;
  min-height: 100vh;
}

.main-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.main-auth__container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  min-height: min(680px, calc(100vh - 48px));
}

.auth-card__header h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #263238;
}

.auth-card__header p {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #546e7a;
}

.auth-card__body {
  padding-top: 24px;
}

.auth-step[hidden] {
  display: none !important;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.textfield {
  position: relative;
}

.textfield__input {
  width: 100%;
  height: 48px;
  border: 1px solid #cad4d8;
  border-radius: 8px;
  padding: 16px 40px 8px 14px;
  font-size: 16px;
  color: #263238;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.textfield__input:focus {
  border-color: #e25352;
}

.textfield__label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 14px;
  color: #78909c;
  pointer-events: none;
  transition: all 0.15s ease;
}

.textfield__input:focus + .textfield__label,
.textfield__input:not(:placeholder-shown) + .textfield__label {
  top: 6px;
  font-size: 11px;
  color: #546e7a;
}

.textfield__icon {
  position: absolute;
  right: 12px;
  top: 14px;
  display: flex;
}

.textfield__status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #78909c;
}

.textfield__char-counter {
  flex-shrink: 0;
}

.privacy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #e8f5e9;
  cursor: pointer;
}

.privacy-banner__left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #263238;
}

.privacy-banner__detail {
  margin: -8px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #546e7a;
  background: #f1f8f1;
  border-radius: 0 0 8px 8px;
}

.register-checkbox {
  margin-top: 4px;
}

.checkbox__container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #cad4d8;
  border-radius: 4px;
  background: #fff;
}

.checkbox__input:checked ~ .checkmark {
  background: #e25352;
  border-color: #e25352;
}

.checkbox__input:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.input__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #263238;
}

.input__label a {
  color: #e25352;
  text-decoration: underline;
}

.filled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.filled--primary {
  background: #e25352;
  color: #fff;
}

.filled--primary:not(:disabled):hover {
  background: #c94443;
}

.filled:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.text--md {
  font-size: 14px;
}

.full {
  width: 100%;
}

.form-error {
  margin: 0;
  font-size: 13px;
  color: #c62828;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

.auth-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid #cad4d8;
  margin: 0;
}

.auth-divider span {
  font-size: 12px;
  font-weight: 500;
  color: #78909c;
}

.auth-alt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-alt__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #cad4d8;
  background: #fff;
  color: #263238;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-alt__btn:hover {
  background: #f5f5f5;
}

.auth-link {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #263238;
  text-decoration: underline;
  cursor: pointer;
}

.auth-recaptcha {
  margin: 24px 0 0;
  font-size: 10px;
  line-height: 12px;
  color: #78909c;
  text-align: center;
}

.auth-recaptcha a {
  color: #263238;
  text-decoration: underline;
}

.auth-back {
  border: none;
  background: transparent;
  color: #546e7a;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 16px;
  margin-bottom: 8px;
}

.auth-step__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
}

.auth-card__footer {
  padding-top: 20px;
  margin-top: auto;
}

.auth-card__escort-link {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #546e7a;
}

.auth-card__escort-link a {
  color: #e25352;
  font-weight: 600;
  text-decoration: none;
}

.auth-card__escort-link a:hover {
  text-decoration: underline;
}
