:root {
  --lt-red: #dc2626;
  --lt-red-bright: #ef4444;
  --lt-red-dark: #991b1b;
  --lt-black: #08090d;
  --lt-black-2: #0d0f15;
  --lt-black-3: #141720;
  --lt-white: #ffffff;
  --lt-off-white: #f6f7f9;
  --lt-text: #20232b;
  --lt-muted: #707783;
  --lt-line: #e4e7eb;
  --lt-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: var(--lt-text);
  background: var(--lt-off-white);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--lt-red);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--lt-red-dark);
}

[hidden],
.hidden {
  display: none !important;
}

/* =========================================================
   LAYOUT
========================================================= */

.auth-layout {
  display: grid;
  grid-template-columns: minmax(470px, 0.96fr) minmax(520px, 1.04fr);
  min-height: 100vh;
  background: var(--lt-off-white);
}

.auth-art {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--lt-white);
  background:
    radial-gradient(circle at 12% 14%, rgba(220, 38, 38, 0.28), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(153, 27, 27, 0.24), transparent 28%),
    linear-gradient(138deg, #060609 0%, #0a0b10 52%, #111018 100%);
}

.auth-art::before {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.auth-art::after {
  position: absolute;
  right: -170px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.07);
  box-shadow:
    0 0 0 70px rgba(220, 38, 38, 0.025),
    0 0 0 140px rgba(220, 38, 38, 0.015);
  content: "";
}

.login-art {
  background:
    radial-gradient(circle at 12% 14%, rgba(220, 38, 38, 0.30), transparent 31%),
    radial-gradient(circle at 88% 82%, rgba(153, 27, 27, 0.23), transparent 28%),
    linear-gradient(138deg, #060609 0%, #0a0b10 52%, #111018 100%);
}

.recovery-art {
  background:
    radial-gradient(circle at 14% 16%, rgba(185, 28, 28, 0.27), transparent 31%),
    radial-gradient(circle at 84% 80%, rgba(220, 38, 38, 0.18), transparent 28%),
    linear-gradient(138deg, #07070a 0%, #0c0d12 55%, #121018 100%);
}

.register-art {
  background:
    radial-gradient(circle at 10% 16%, rgba(239, 68, 68, 0.27), transparent 31%),
    radial-gradient(circle at 90% 78%, rgba(153, 27, 27, 0.23), transparent 29%),
    linear-gradient(138deg, #060609 0%, #0a0b10 50%, #111018 100%);
}

.auth-art-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  max-width: 760px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5.2vw, 72px);
}

.art-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--lt-white);
  text-decoration: none;
}

.art-brand:hover {
  color: var(--lt-white);
}

.art-brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--lt-red-bright), var(--lt-red-dark));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}

.art-brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.art-brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.art-copy {
  max-width: 620px;
  margin-block: 52px;
}

.art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.art-kicker i {
  color: var(--lt-red-bright);
}

.art-copy h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -2.4px;
}

.art-copy h1 span {
  color: var(--lt-red-bright);
}

.art-copy > p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.art-feature-list {
  display: grid;
  gap: 11px;
  max-width: 570px;
  margin-top: 34px;
}

.art-feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
}

.art-feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.13);
  font-size: 16px;
}

.art-feature > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.art-feature strong {
  color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
}

.art-feature small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.45;
}

.art-profile-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.art-profile-preview > div {
  display: grid;
  min-width: 0;
  min-height: 112px;
  align-content: center;
  gap: 9px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.art-profile-preview i {
  color: #f87171;
  font-size: 20px;
}

.art-profile-preview span {
  display: flex;
  flex-direction: column;
}

.art-profile-preview strong {
  color: #ffffff;
  font-size: 13px;
}

.art-profile-preview small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

.art-footer-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(74, 222, 128, 0.22);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08);
}

/* =========================================================
   LADO DO FORMULÁRIO
========================================================= */

.auth-side {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 38px clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 38, 38, 0.07), transparent 27%),
    radial-gradient(circle at 0% 100%, rgba(153, 27, 27, 0.045), transparent 30%),
    #f7f8fa;
}

.auth-side::before {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(220, 38, 38, 0.07);
  border-radius: 50%;
  content: "";
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  padding: 38px 42px 34px;
  border: 1px solid #eceef1;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--lt-shadow);
}

.auth-card.register-card {
  width: min(100%, 640px);
  padding: 27px 34px 26px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 25px;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--lt-red-bright), var(--lt-red-dark));
  box-shadow: 0 9px 20px rgba(220, 38, 38, 0.22);
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-name {
  color: #20232b;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1;
}

.brand-name span {
  color: var(--lt-red);
}

.brand-subtitle {
  margin-top: 5px;
  color: #9298a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.auth-title {
  margin: 0;
  color: #1c1f26;
  text-align: center;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.18;
}

.auth-subtitle {
  max-width: 460px;
  margin: 8px auto 27px;
  color: var(--lt-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   CAMPOS
========================================================= */

.field {
  margin-bottom: 16px;
}

.field label,
.group-label {
  display: block;
  margin-bottom: 7px;
  color: #353a44;
  font-size: 12px;
  font-weight: 750;
}

.field label .field-icon,
.group-label .field-icon {
  width: 18px;
  margin-right: 7px;
  color: var(--lt-red);
  text-align: center;
  font-size: 13px;
}

.field-wrap {
  position: relative;
}

.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  outline: none;
  color: #262a33;
  background: #fbfcfd;
  font-size: 13px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:hover,
.field select:hover {
  border-color: #cfd4db;
}

.field input:focus,
.field select:focus {
  border-color: rgba(220, 38, 38, 0.65);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.07);
}

.field input::placeholder {
  color: #a5abb4;
}

.field input.input-with-icon {
  padding-left: 48px;
}

.inside-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  color: #9ba1aa;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #9298a2;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password:hover {
  color: var(--lt-red);
  background: #fff2f2;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: #9298a2;
  font-size: 10px;
  line-height: 1.4;
}

.row-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 3px 0 23px;
  font-size: 12px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5d636d;
  cursor: pointer;
}

.check-label input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--lt-red);
}

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lt-red), var(--lt-red-dark));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 29px rgba(220, 38, 38, 0.28);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-footer {
  margin: 24px 0 0;
  color: #7a808a;
  text-align: center;
  font-size: 12px;
}

/* =========================================================
   CADASTRO
========================================================= */

.auth-card.register-card .brand {
  margin-bottom: 14px;
}

.auth-card.register-card .brand-mark {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 16px;
}

.auth-card.register-card .brand-mark img {
  width: 58px;
  height: 58px;
}

.auth-card.register-card .brand-name {
  font-size: 24px;
}

.auth-card.register-card .brand-subtitle {
  font-size: 8px;
  letter-spacing: 2px;
}

.auth-card.register-card .auth-title {
  font-size: 27px;
}

.auth-card.register-card .auth-subtitle {
  max-width: 520px;
  margin: 5px auto 15px;
  font-size: 11px;
}

.auth-card.register-card .field {
  margin-bottom: 10px;
}

.auth-card.register-card .field label,
.auth-card.register-card .group-label {
  margin-bottom: 5px;
  font-size: 11px;
}

.auth-card.register-card .field input,
.auth-card.register-card .field select {
  height: 43px;
  border-radius: 10px;
  font-size: 12px;
}

.auth-card.register-card .toggle-password {
  width: 31px;
  height: 31px;
}

.auth-card.register-card .field-hint {
  margin-top: 3px;
  font-size: 9px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 7px 0 13px;
}

.profile-choice {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 61px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  color: #69707b;
  background: #fbfcfd;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.profile-choice:hover {
  border-color: #f0b5b7;
  transform: translateY(-1px);
}

.profile-choice i {
  font-size: 16px;
}

.profile-choice.active {
  border-color: rgba(220, 38, 38, 0.7);
  color: var(--lt-red-dark);
  background: #fff3f3;
  box-shadow: 0 5px 14px rgba(220, 38, 38, 0.08);
}

.profile-choice.active::after {
  position: absolute;
  top: 5px;
  right: 6px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--lt-red);
  content: "✓";
  font-size: 8px;
}

.terms-line {
  margin: 0 0 14px;
  color: #737983;
  font-size: 10px;
  line-height: 1.4;
}

.terms-line .check-label {
  align-items: flex-start;
}

.terms-line input {
  width: 16px;
  height: 16px;
}

.terms-accent {
  color: var(--lt-red);
  font-weight: 700;
}

.extra-head {
  margin: 0 0 16px;
  text-align: center;
}

.extra-head h2 {
  margin: 0 0 5px;
  color: #20232b;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.extra-head p {
  margin: 0;
  color: #7b818c;
  font-size: 11px;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 11px;
}

.extra-actions {
  display: flex;
  gap: 9px;
}

.extra-actions .primary-button {
  flex: 1;
  min-height: 48px;
  font-size: 13px;
}

.secondary-button {
  min-width: 92px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  color: #4f5661;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-card.register-card .auth-footer {
  margin-top: 13px;
  font-size: 11px;
}

/* =========================================================
   RECUPERAÇÃO
========================================================= */

.recovery-card {
  width: min(100%, 600px);
}

.progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 24px;
}

.progress-item {
  flex: 0 0 auto;
  color: #959ba5;
  text-align: center;
  font-size: 10px;
  font-weight: 750;
}

.progress-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 auto 6px;
  border: 1px solid #dfe3e8;
  border-radius: 50%;
  color: #7f8590;
  background: #ffffff;
  font-size: 11px;
}

.progress-item.active,
.progress-item.done {
  color: var(--lt-red);
}

.progress-item.active span,
.progress-item.done span {
  border-color: var(--lt-red);
  color: #ffffff;
  background: var(--lt-red);
  box-shadow: 0 5px 12px rgba(220, 38, 38, 0.17);
}

.progress-line {
  height: 1px;
  flex: 1;
  margin-top: 17px;
  background: #e2e5e9;
}

.recovery-heading {
  margin-bottom: 17px;
}

.recovery-heading h2 {
  margin: 0 0 6px;
  color: #20232b;
  font-size: 24px;
  letter-spacing: -0.55px;
}

.recovery-heading p {
  margin: 0;
  color: #747b86;
  font-size: 12px;
  line-height: 1.55;
}

.kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--lt-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.recovery-step:not(.active) {
  display: none;
}

.back-link {
  display: block;
  margin-top: 20px;
  color: #7a818b;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.back-link strong {
  color: var(--lt-red);
}

.back-success {
  text-decoration: none;
}

.recovery-resend-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #8c929c;
  font-size: 11px;
}

.text-button {
  border: 0;
  color: var(--lt-red);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   FEEDBACK / ACESSIBILIDADE
========================================================= */

.toast,
#toast-container .toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  max-width: min(390px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 12px;
  visibility: hidden;
  opacity: 0;
  color: #ffffff;
  background: #171a21;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.toast.show,
#toast-container .toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast.error,
#toast-container .toast.error {
  background: #991b1b;
}

.toast.success,
#toast-container .toast.success {
  background: #146c48;
}

.btn-spinner,
.recovery-button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
}

.loading .recovery-button-spinner,
.btn-spinner[style*="block"] {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.18);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1160px) {
  .auth-layout {
    grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1.18fr);
  }

  .auth-art-content {
    padding: 38px;
  }

  .art-copy h1 {
    font-size: 43px;
  }

  .art-profile-preview {
    grid-template-columns: 1fr;
  }

  .art-profile-preview > div {
    min-height: 76px;
    grid-template-columns: 28px 1fr;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    display: block;
  }

  .auth-art {
    display: none;
  }

  .auth-side {
    min-height: 100vh;
    padding: 24px;
  }

  .auth-card,
  .auth-card.register-card,
  .recovery-card {
    width: min(100%, 620px);
  }
}

@media (max-width: 560px) {
  .auth-side {
    align-items: flex-start;
    padding: 12px;
    background: #f6f7f9;
  }

  .auth-card,
  .auth-card.register-card {
    width: 100%;
    min-height: calc(100vh - 24px);
    padding: 27px 20px 24px;
    border-radius: 20px;
    box-shadow: none;
  }

  .brand {
    gap: 10px;
    margin-bottom: 21px;
  }

  .art-brand-mark {
    width: 54px;
    height: 54px;
  }

  .art-brand-mark img {
    width: 49px;
    height: 49px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  .brand-mark img {
    width: 49px;
    height: 49px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  .auth-title {
    font-size: 27px;
  }

  .auth-subtitle {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .field input,
  .field select {
    height: 50px;
  }

  .row-options {
    gap: 8px;
    font-size: 11px;
  }

  .auth-card.register-card .brand {
    margin-bottom: 12px;
  }

  .auth-card.register-card .brand-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  .auth-card.register-card .brand-mark img {
    width: 49px;
    height: 49px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-choice {
    min-height: 44px;
    flex-direction: row;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .progress-item {
    font-size: 9px;
  }

  .progress-item span {
    width: 31px;
    height: 31px;
  }

  .progress-line {
    margin-top: 15px;
  }

  .toast,
  #toast-container .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}
