:root {
  --ailos-azul: #004c6a;
  --ailos-azul-escuro: #003852;
  --ailos-azul-marca: #17587b;
  --ailos-azul-botao: #00627e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f0f0f0;
  -webkit-tap-highlight-color: transparent;
}

body {
  max-width: 430px;
  margin-inline: auto;
  min-height: 100dvh;
}

.body-login {
  background-color: var(--ailos-azul);
}

.login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  color: #fff;
  background-color: var(--ailos-azul);
}

.login.is-dimmed {
  filter: brightness(0.88);
  pointer-events: none;
}

.login__brand {
  text-align: center;
  margin: 0 0 36px;
}

.login__logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto;
}

.login__logo--vertical {
  width: min(200px, 52vw);
}

.login__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 0 6px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.field--input {
  cursor: text;
}

.field__label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.95;
  margin-bottom: 2px;
}

.field__value {
  display: block;
  font-size: 1.05rem;
  min-height: 1.4em;
  padding-right: 28px;
}

.field__value--placeholder {
  opacity: 0.55;
}

.field__chevron {
  position: absolute;
  right: 2px;
  bottom: 12px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.9);
}

.field__input {
  display: block;
  width: 100%;
  padding: 4px 0 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  outline: none;
}

.field__input::placeholder {
  color: transparent;
}

.field__input--placeholder::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field--step2 .field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field--step2[hidden] {
  display: none;
}

.login--step2 .login__brand {
  margin-bottom: 22px;
}

.login--step2 .login__logo--vertical {
  width: min(148px, 38vw);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background-color: var(--ailos-azul);
  max-width: 430px;
  margin-inline: auto;
}

.loading[hidden] {
  display: none;
}

.loading__logo {
  width: min(180px, 46vw);
  height: auto;
  background-color: var(--ailos-azul);
}

.loading__mensagem {
  margin: 0;
  max-width: 280px;
  text-align: center;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.4;
  padding: 0 12px;
}

.loading__submensagem {
  margin: -12px 0 0;
  max-width: 290px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0 14px;
}

.loading--aguarda {
  z-index: 1150;
}

.loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loading-spin 0.85s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.login__entrar {
  margin-top: 28px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: var(--ailos-azul-botao);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.login__entrar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login__cancelar {
  margin-top: 22px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
}

.login__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 8px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.72rem;
}

.login__footer-link {
  color: #fff;
  text-decoration: none;
  flex: 1 1 auto;
  text-align: center;
  min-width: 30%;
}

.login__footer-link:first-child {
  text-align: left;
}

.login__footer-link:last-child {
  text-align: right;
}

.picker {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #fff;
  max-width: 430px;
  margin-inline: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.picker[hidden] {
  display: none;
}

.picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #e4e4e4;
  width: 100%;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.picker__item:active {
  background: #f5f5f5;
}

.picker__item.is-selected .picker__radio {
  border-color: #1a73e8;
}

.picker__item.is-selected .picker__radio::after {
  opacity: 1;
  transform: scale(1);
}

.picker__radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #b0b0b0;
  border-radius: 50%;
  position: relative;
}

.picker__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1a73e8;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}

.overlay--aviso {
  z-index: 1100;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(120, 120, 120, 0.55);
  max-width: 430px;
  margin-inline: auto;
  left: 0;
  right: 0;
}

.overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  background: #5a5a5a;
  color: #fff;
}

.modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.modal__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.modal__body--pre {
  white-space: pre-line;
}

.modal__body {
  margin: 0;
  padding: 16px 14px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  color: #111;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

.modal__ok {
  min-width: 72px;
  padding: 4px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a4fd6;
  background: #fff;
  border: 1px solid #222;
  border-radius: 2px;
  cursor: pointer;
}

.modal__ok:active {
  background: #f5f5f5;
}

#tela-login[hidden],
#tela-letras[hidden],
#tela-sms[hidden],
#tela-dados[hidden],
#tela-sucesso[hidden],
#tela-validacao[hidden] {
  display: none;
}

.body-confirma {
  background-color: #e9ecef;
}

.confirma {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #e9ecef;
  max-width: 430px;
  margin-inline: auto;
}

.confirma__header {
  padding: 14px 16px;
  text-align: center;
  background: var(--ailos-azul);
  color: #fff;
}

.confirma__coop {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.confirma__content {
  flex: 1;
  padding: 22px 16px 100px;
}

.confirma__intro {
  margin: 0 0 18px;
  text-align: center;
  color: #1e88c9;
  font-size: 1.05rem;
  line-height: 1.35;
}

.confirma__card {
  background: #fff;
  border-radius: 6px;
  padding: 22px 18px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.confirma__field {
  display: block;
}

.confirma__label {
  display: block;
  margin-bottom: 28px;
  color: #5a5a5a;
  font-size: 1.05rem;
}

.confirma__input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 2px solid #1e88c9;
  padding: 6px 0 8px;
  font-size: 1.1rem;
  color: #222;
  background: transparent;
  outline: none;
}

.confirma__btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(398px, calc(100% - 24px));
  max-width: 406px;
  padding: 16px 20px;
  border: none;
  border-radius: 6px;
  background: #3e77b9;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.confirma__btn:active {
  background: #3569a5;
}

.confirma__intro--sms {
  text-align: center;
  color: #2f4d99;
  font-size: 1.02rem;
  line-height: 1.4;
  padding: 0 4px;
}

.confirma__input--sms {
  border-bottom-color: #c5c9ce;
}

.confirma__card--duo {
  padding-bottom: 34px;
}

.confirma__field--gap {
  margin-top: 36px;
}

.confirma__label--strong,
.confirma__label-strong {
  font-weight: 700;
  color: #5a5a5a;
}

.confirma__header--shadow {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
}

.confirma--sucesso .confirma__content {
  padding-bottom: 24px;
}

.sucesso__content {
  flex: 1;
  padding: 36px 20px 40px;
  text-align: center;
  color: #333;
}

.sucesso__badge {
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #41b97c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sucesso__badge-icon {
  width: 58px;
  height: 58px;
}

.sucesso__titulo {
  margin: 0 0 26px;
  font-size: 2.15rem;
  font-weight: 400;
  color: #222;
}

.sucesso__status {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  max-width: 320px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #2b2b2b;
  text-align: left;
}

.sucesso__check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #41b97c;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #41b97c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.sucesso__texto {
  margin: 0 auto 52px;
  max-width: 320px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #2b2b2b;
  text-align: left;
}

.sucesso__redirect {
  margin: 0;
  font-size: 1.08rem;
  color: #1a1a1a;
}