.login-container { 
}

.login-container--split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.login-media {
  flex: 1 1 52%;
  min-width: 0;
  min-height: 100vh;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.login-media-video {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.login-panel {
  position: relative;
  flex: 0 1 48%;
  min-width: min(100%, 320px);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  background: var(--surface-1);
  color: var(--text-1);
  border-left: 1px solid var(--border-1);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04), -14px 0 36px -14px rgba(0, 0, 0, 0.22);
}

.login-theme-icon-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.login-theme-icon-btn:hover {
  opacity: 1;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.04);
}

:root[data-theme='dark'] .login-theme-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.login-theme-icon-btn:focus-visible {
  opacity: 1;
  outline: 2px solid var(--resistente-blue);
  outline-offset: 2px;
}

.login-container--split .login-panel > * {
  width: 100%;
  max-width: 400px;
}

.login-container--split .login-panel > .login-theme-icon-btn {
  width: 2rem;
  max-width: none;
}

:root[data-theme='light'] .login-container--split .login-panel {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.65), -8px 0 24px -16px rgba(0, 71, 171, 0.07);
}

@media (max-width: 768px) {
  .login-container--split {
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
  }

  .login-media {
    flex: 0 0 auto;
    min-height: 0;
    height: min(36vh, 280px);
    max-height: 40vh;
    width: 100%;
  }

  .login-media-video {
    min-height: 100%;
  }

  .login-panel {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-1);
    padding: 1.5rem 1.25rem 2rem;
    align-items: flex-start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 -8px 24px -14px rgba(0, 0, 0, 0.1);
  }

  :root[data-theme='light'] .login-container--split .login-panel {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 -6px 20px -12px rgba(0, 71, 171, 0.06);
  }

  .login-container--split .login-panel > * {
    max-width: none;
  }
}

.login-step-label {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding-bottom: 70px;
}

.login-logo img {
  max-width: 180px;
  height: auto;
}

.login-title {
  margin: 0 0 0.75rem;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  color: #055c9e;
}

:root[data-theme='dark'] .login-title {
  color: #4db3e8;
}

.login-step-visual {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.login-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  color: #055c9e;
  background: linear-gradient(145deg, rgba(5, 92, 158, 0.14) 0%, rgba(5, 92, 158, 0.04) 100%);
  border: 1px solid rgba(5, 92, 158, 0.24);
  box-shadow:
    0 4px 16px rgba(5, 92, 158, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.login-step-icon-svg {
  display: block;
  flex-shrink: 0;
}

.login-step-visual[data-step='2'] .login-step-icon {
  background: linear-gradient(145deg, rgba(5, 92, 158, 0.12) 0%, rgba(16, 124, 104, 0.08) 100%);
  border-color: rgba(5, 92, 158, 0.2);
}

.login-step-visual[data-step='3'] .login-step-icon {
  background: linear-gradient(145deg, rgba(5, 92, 158, 0.12) 0%, rgba(71, 85, 171, 0.1) 100%);
  border-color: rgba(5, 92, 158, 0.22);
}

:root[data-theme='dark'] .login-step-icon {
  color: #5eb8e8;
  background: linear-gradient(145deg, rgba(77, 179, 232, 0.2) 0%, rgba(77, 179, 232, 0.06) 100%);
  border-color: rgba(77, 179, 232, 0.38);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .login-step-visual[data-step='2'] .login-step-icon {
  background: linear-gradient(145deg, rgba(77, 179, 232, 0.16) 0%, rgba(52, 211, 153, 0.1) 100%);
}

:root[data-theme='dark'] .login-step-visual[data-step='3'] .login-step-icon {
  background: linear-gradient(145deg, rgba(77, 179, 232, 0.16) 0%, rgba(129, 140, 248, 0.12) 100%);
}
  
.login-lead {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  color: var(--text-2);
  background: linear-gradient(135deg, rgba(5, 92, 158, 0.07) 0%, rgba(5, 92, 158, 0.02) 100%);
  border: 1px solid rgba(5, 92, 158, 0.18);
  border-radius: 0px;
  border-left: 4px solid #055c9e;
  box-shadow: 0 2px 12px rgba(5, 92, 158, 0.08);
}

:root[data-theme='dark'] .login-lead {
  color: var(--text-2);
  background: linear-gradient(135deg, rgba(5, 92, 158, 0.22) 0%, rgba(5, 92, 158, 0.06) 100%);
  border-color: rgba(5, 92, 158, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.login-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 78px;
}

.login-recaptcha > div {
  transform-origin: top center;
}

@media (max-width: 380px) {
  .login-recaptcha > div {
    transform: scale(0.9);
  }
}

.login-recaptcha-dev {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-3);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  border: 1px dashed var(--border-1);
}

.login-recaptcha-dev code {
  font-size: 0.85em;
  word-break: break-all;
}

.login-container .input-group {
  margin-bottom: 1rem;
}

.login-container .input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-1);
}

.login-container .input-group input::placeholder {
  color: var(--text-3);
}

.login-container .input-group input:focus {
  outline: none;
  border-color: var(--resistente-blue);
  box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.2);
}

.login-error {
  --login-error-fg: #991b1b;
  --login-error-muted: rgba(153, 27, 27, 0.12);
  --login-error-border: rgba(153, 27, 27, 0.22);
  --login-error-accent: #dc2626;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem 0.75rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--login-error-fg);
  background: linear-gradient(
    105deg,
    var(--login-error-muted) 0%,
    rgba(153, 27, 27, 0.04) 55%,
    transparent 100%
  );
  border: 1px solid var(--login-error-border);
  border-left: 4px solid var(--login-error-accent);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(153, 27, 27, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow-wrap: anywhere;
}

.login-error::before {
  content: "";
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  background-color: var(--login-error-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm1-8h-2v6h2V8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm1-8h-2v6h2V8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

:root[data-theme='dark'] .login-error {
  --login-error-fg: #fecaca;
  --login-error-muted: rgba(248, 113, 113, 0.14);
  --login-error-border: rgba(248, 113, 113, 0.32);
  --login-error-accent: #f87171;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.login-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--resistente-white);
  background: var(--resistente-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.login-btn:hover:not(:disabled) {
  background: #003d8f;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 1.25em;
}

.login-btn-spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--resistente-white);
  border-radius: 50%;
  animation: login-btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.login-btn.is-loading .login-btn-spinner {
  display: inline-block;
}

.login-btn.is-loading {
  cursor: wait;
  opacity: 1;
}

@keyframes login-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-btn--inline {
  flex: 1;
}

.login-btn-secondary {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.login-btn-secondary:hover:not(:disabled) {
  border-color: var(--resistente-blue);
  background: rgba(0, 71, 171, 0.08);
}

.login-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Bloco “Primeiro acesso” (passo 3): cartão informativo alinhado à marca */
.login-2fa-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.35rem;
  padding: 1.35rem 1.2rem 1.45rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    rgba(5, 92, 158, 0.09) 0%,
    rgba(5, 92, 158, 0.03) 42%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border: 1px solid rgba(5, 92, 158, 0.16);
  box-shadow:
    0 4px 22px rgba(5, 92, 158, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
}

.login-2fa-copy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #055c9e 0%, #0a7bc2 55%, #0d9488 100%);
  opacity: 0.95;
}

:root[data-theme='dark'] .login-2fa-copy {
  background: linear-gradient(
    155deg,
    rgba(77, 179, 232, 0.12) 0%,
    rgba(15, 23, 42, 0.55) 48%,
    rgba(15, 23, 42, 0.85) 100%
  );
  border-color: rgba(77, 179, 232, 0.28);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme='dark'] .login-2fa-copy::before {
  background: linear-gradient(180deg, #4db3e8 0%, #2dd4bf 100%);
  opacity: 1;
}

.login-2fa-copy .login-2fa-hint {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 26rem;
  width: 100%;
}

.login-2fa-copy .login-2fa-hint--title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--text-1);
  border-bottom: 1px solid rgba(5, 92, 158, 0.12);
}

.login-2fa-copy .login-2fa-hint--title strong {
  font-weight: 700;
}

:root[data-theme='dark'] .login-2fa-copy .login-2fa-hint--title {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

/* Separador suave entre os dois parágrafos de texto */
.login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title):not(:last-child) {
  padding-bottom: 1rem;
  margin-bottom: 0.15rem;
}

.login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title):not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: min(260px, 88%);
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(5, 92, 158, 0.22) 22%,
    rgba(5, 92, 158, 0.38) 50%,
    rgba(5, 92, 158, 0.22) 78%,
    transparent 100%
  );
}

:root[data-theme='dark'] .login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title):not(:last-child)::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.12) 25%,
    rgba(148, 163, 184, 0.22) 50%,
    rgba(148, 163, 184, 0.12) 75%,
    transparent 100%
  );
}

.login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title) {
  font-size: 0.9rem;
  line-height: 1.62;
  font-weight: 400;
  color: var(--text-2);
}

.login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title) strong {
  color: #055c9e;
  font-weight: 600;
}

:root[data-theme='dark'] .login-2fa-copy .login-2fa-hint:not(.login-2fa-hint--title) strong {
  color: #7dd3fc;
}

.login-2fa-hint {
  margin: 0 0 1.25rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
}

.login-2fa-hint--title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
}

.login-2fa-hint strong {
  color: var(--text-1);
}

.login-otp-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.login-otp-row--8 {
  gap: 0.3rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.login-otp-row--8 .login-otp-cell {
  width: 2.05rem;
  height: 2.45rem;
  font-size: 1.05rem;
}

.login-otp-cell {
  width: 2.5rem;
  height: 2.75rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid var(--resistente-blue);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-otp-cell:focus {
  outline: none;
  border-color: #003d8f;
  box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.28);
}

.login-2fa-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.login-channel-picker {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.login-channel-option {
  display: block;
}

.login-channel-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-channel-option-card {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-1);
  background: var(--surface-1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-channel-option-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
}

.login-channel-option-subtitle {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

.login-channel-option-input:checked + .login-channel-option-card {
  border-color: var(--resistente-blue);
  box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.18);
  background: rgba(0, 71, 171, 0.06);
}

.login-channel-option-input:focus-visible + .login-channel-option-card {
  outline: 2px solid var(--resistente-blue);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .login-otp-row {
    gap: 0.35rem;
  }

  .login-otp-cell {
    width: 2.15rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
}

/* ── Confirmação de dados (step 3) ── */
.login-confirm {
  width: 100%;
  animation: login-confirm-in 0.3s ease;
}

@keyframes login-confirm-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-confirm__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.35rem;
  padding: 1.5rem 1.2rem 1.35rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    rgba(5, 92, 158, 0.09) 0%,
    rgba(5, 92, 158, 0.03) 42%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border: 1px solid rgba(5, 92, 158, 0.16);
  box-shadow:
    0 4px 22px rgba(5, 92, 158, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
}

.login-confirm__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #055c9e 0%, #0d9488 100%);
  opacity: 0.95;
}

:root[data-theme='dark'] .login-confirm__card {
  background: linear-gradient(
    155deg,
    rgba(77, 179, 232, 0.12) 0%,
    rgba(15, 23, 42, 0.55) 48%,
    rgba(15, 23, 42, 0.85) 100%
  );
  border-color: rgba(77, 179, 232, 0.28);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme='dark'] .login-confirm__card::before {
  background: linear-gradient(180deg, #4db3e8 0%, #2dd4bf 100%);
  opacity: 1;
}

.login-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  color: #055c9e;
  background: rgba(5, 92, 158, 0.1);
}

:root[data-theme='dark'] .login-confirm__icon {
  color: #5eb8e8;
  background: rgba(77, 179, 232, 0.18);
}

.login-confirm__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-1);
}

.login-confirm__subtitle {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-3);
}

.login-confirm__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.login-confirm__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  text-align: left;
}

.login-confirm__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.login-confirm__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  word-break: break-all;
}

/* Rodapé discreto — link “Redefinir meu acesso” (2FA, escolha de canal) */
.login-redefinir-footer {
  width: 100%;
  max-width: 400px;
  margin-top: 2.25rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-1);
  text-align: center;
}

.login-redefinir-footer__btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0.2rem 0.4rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-3);
  cursor: pointer;
  text-decoration: none;
  opacity: 0.88;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.login-redefinir-footer__btn:hover {
  color: var(--text-2);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-redefinir-footer__btn:focus-visible {
  outline: 2px solid var(--resistente-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
