/* Login Linha Viva — Card Horizontal 2 Colunas Limpo e Elegante */

.login-page {
  --lv-surface: #ffffff;
  --lv-surface-border: #e2e8f0;
  background: #0b1220;
  color: #0f172a;
  font-family: var(--lv-font, "Plus Jakarta Sans", system-ui, sans-serif);
  min-height: 100vh;
}

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.login-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
}

.login-card-horizontal {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .login-card-horizontal {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Coluna Informativa da Esquerda */
.login-info-side {
  background: linear-gradient(135deg, #0b1220, #1e3a8a);
  color: #ffffff;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-info-side::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.login-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #1e56a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.login-brand-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.login-brand-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.login-info-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.login-info-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.login-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: #e2e8f0;
}

.login-features-list li i {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: #38bdf8;
}

.login-info-footer {
  font-size: 0.8rem;
  color: #94a3b8;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

/* Coluna do Formulário da Direita */
.login-form-side {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.login-form-header {
  margin-bottom: 1.5rem;
}

.login-form-header .lv-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.login-form-header .lv-text-block {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.login-label-row .lv-label {
  margin-bottom: 0;
}

.login-label-row .lv-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
}

.login-btn {
  margin-top: 0.5rem;
  height: 44px;
  border-radius: 12px;
}

.login-card__footer {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  cursor: pointer;
}

.pin-input {
  letter-spacing: 0.28em;
  text-align: center;
  font-weight: 700;
}

.login-alert {
  display: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  border: 1px solid transparent;
}

.login-alert--visible {
  display: block;
}

.login-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.login-alert--success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.login-alert--info {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* Overlays e Modais */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  box-sizing: border-box;
}

.welcome-overlay.show {
  display: flex;
}

.welcome-overlay[hidden] {
  display: none !important;
}

.welcome-modal {
  position: relative;
  width: min(400px, 100%);
  margin: 0;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.welcome-modal .lv-badge {
  margin-left: auto;
  margin-right: auto;
}

.welcome-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.welcome-modal__close:hover {
  background: #e2e8f0;
  color: #1e56a0;
}

.welcome-modal__avatar {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #1e56a0, #38bdf8);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.2);
}

.welcome-modal__title {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.welcome-modal__greeting {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.welcome-modal__greeting strong {
  color: #0f172a;
}

.welcome-modal__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.welcome-modal__meta-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 86, 160, 0.1);
  color: #1e56a0;
}

.welcome-modal__meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.welcome-modal__meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.welcome-modal__meta-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

.welcome-modal__progress {
  height: 4px;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.welcome-modal__progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e56a0, #38bdf8);
  animation: welcome-progress 2.75s ease-in-out forwards;
}

@keyframes welcome-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.welcome-modal__redirect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.password-change-modal {
  text-align: left;
}

.password-change-modal .lv-badge,
.password-change-modal .welcome-modal__avatar,
.password-change-modal .welcome-modal__title,
.password-change-modal .welcome-modal__greeting {
  text-align: center;
}

.password-change-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.password-change-rules {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.password-change-rules li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.65;
}

.password-change-rules li::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #cbd5e1;
}

.password-change-rules li.valid {
  color: #16a34a;
}

.password-change-rules li.valid::before {
  content: "\f00c";
  color: #16a34a;
}
