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

body {
  margin: 0;
}

.la-root {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 24px;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Ondas de fundo */
.la-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.la-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.la-waves path {
  stroke-dasharray: 0.55 0.45;
  animation: la-flow linear infinite alternate;
}

@keyframes la-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -1;
  }
}

/* Suaviza o centro para o formulário ficar legível */
.la-fade {
  display: none;
}

/* Cartão */
.la-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 384px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.la-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.la-logo {
  height: 64px;
  width: auto;
}

.la-head h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.la-head p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

/* Formulário */
.la-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.la-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.la-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.la-field label {
  font-size: 14px;
  font-weight: 500;
}

.la-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  outline: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.la-field input:focus {
  background: rgba(0, 0, 0, 0.12);
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
}

.la-field input::placeholder {
  color: #94a3b8;
}

.la-field input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
}

.la-field input[aria-invalid="true"] {
  border-color: #dc2626;
}

.la-field input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.la-pass {
  position: relative;
}

.la-pass input {
  padding-right: 40px;
}

.la-eye {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background: none;
  border: 0;
  color: #334155;
  cursor: pointer;
}

.la-eye:hover {
  color: #020617;
}

.la-eye .la-eye-off {
  display: none;
}

.la-eye.is-visible .la-eye-off {
  display: inline;
}

.la-link {
  font-size: 12px;
  font-weight: 500;
  color: #15803d;
  text-decoration: none;
}

.la-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.la-error {
  min-height: 0;
  font-size: 12px;
  color: #dc2626;
}

.la-error:empty {
  display: none;
}

.la-alert {
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

/* Botão */
.la-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #16a34a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}

.la-submit:hover:not(:disabled) {
  background: #15803d;
}

.la-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.la-submit .la-spin {
  display: none;
  animation: la-rot 1s linear infinite;
}

.la-submit.is-loading .la-spin {
  display: block;
}

/* Botões 3D */
#submit-btn,
.la-btn-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: auto;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 0.5em;
  padding: 0.375em 1em;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  transition: 0.15s ease;
}

#submit-btn {
  font-size: 1.35rem;
}

#submit-btn:disabled,
.la-btn-3d:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Verde 3D (Entrar e Enviar) */
#submit-btn,
.la-btn-3d-green {
  background-color: #15803d;
  text-shadow: 0 0.0625em 0 #14532d;
  box-shadow: inset 0 0.0625em 0 0 #22a355, 0 0.0625em 0 0 #137536,
    0 0.125em 0 0 #116b31, 0 0.25em 0 0 #0f602c, 0 0.3125em 0 0 #0d5527,
    0 0.375em 0 0 #0b4a22, 0 0.425em 0 0 #09401d, 0 0.425em 0.5em 0 #073417;
}

#submit-btn:hover:not(:disabled),
.la-btn-3d-green:hover:not(:disabled) {
  background-color: #137536;
}

#submit-btn:active:not(:disabled),
.la-btn-3d-green:active:not(:disabled) {
  translate: 0 0.225em;
  box-shadow: inset 0 0.03em 0 0 #22a355, 0 0.03em 0 0 #137536,
    0 0.0625em 0 0 #116b31, 0 0.125em 0 0 #0f602c, 0 0.125em 0 0 #0d5527,
    0 0.2em 0 0 #0b4a22, 0 0.225em 0 0 #09401d, 0 0.225em 0.375em 0 #073417;
}

/* Cinza neutro 3D (Cancelar) */
.la-btn-3d-gray,
.la-submit.la-btn-3d-gray {
  background-color: #64748b;
  text-shadow: 0 0.0625em 0 #334155;
  box-shadow: inset 0 0.0625em 0 0 #94a3b8, 0 0.0625em 0 0 #475569,
    0 0.125em 0 0 #3e4b5d, 0 0.25em 0 0 #334155, 0 0.3125em 0 0 #273242,
    0 0.375em 0 0 #1e293b, 0 0.425em 0 0 #161f2c, 0 0.425em 0.5em 0 #0f172a;
}

.la-btn-3d-gray:hover:not(:disabled),
.la-submit.la-btn-3d-gray:hover:not(:disabled) {
  background-color: #56657a;
}

.la-btn-3d-gray:active:not(:disabled),
.la-submit.la-btn-3d-gray:active:not(:disabled) {
  translate: 0 0.225em;
  box-shadow: inset 0 0.03em 0 0 #94a3b8, 0 0.03em 0 0 #475569,
    0 0.0625em 0 0 #3e4b5d, 0 0.125em 0 0 #334155, 0 0.125em 0 0 #273242,
    0 0.2em 0 0 #1e293b, 0 0.225em 0 0 #161f2c, 0 0.225em 0.375em 0 #0f172a;
}

@keyframes la-rot {
  to {
    transform: rotate(360deg);
  }
}

/* Entrada suave */
.la-enter {
  animation: la-in .5s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes la-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .la-waves path,
  .la-enter,
  .la-submit .la-spin {
    animation: none;
  }

  .orbita__braco,
  .orbita__selo {
    animation-play-state: paused;
  }

  .la-waves path {
    stroke-dasharray: none;
  }
}

/* Modal Esqueci a Senha */
.la-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.la-modal:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.la-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}

.la-modal-content {
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.la-modal:not([aria-hidden="true"]) .la-modal-content {
  transform: translateY(0);
}

.la-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.la-modal-actions .la-btn-3d {
  flex: 1;
}

/* Custom Form Styles from Request */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #ffffff;
  padding: 30px;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .08);
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.title-text {
  font-size: 28px;
  color: royalblue;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  align-self: flex-start;
}

.title-text::before,
.title-text::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  top: 10px;
  background-color: royalblue;
}

.title-text::before {
  width: 18px;
  height: 18px;
}

.title-text::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.title-text span {
  font-size: 14px;
  color: #a6a6a6;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 12px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: royalblue;
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}