/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация к светлой теме */
.bg-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--light) !important;
}

.card.bg-dark {
  border: none;
  box-shadow: var(--shadow-lg);
}

.card.bg-light {
  background-color: var(--light) !important;
  color: #000000 !important;
  border: 1px solid rgba(0,0,0,0.1);
}

.card.bg-light .card-title,
.card.bg-light .card-text,
.card.bg-light h3,
.card.bg-light p {
  color: #000000 !important;
}

.table {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.1);
}

.table thead {
  background: var(--primary);
  color: var(--light);
  border-bottom: 2px solid var(--primary-dark);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.03);
}

.login-steps {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

.login-steps::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-glow);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--primary-rgb), 0.1));
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .login-steps {
    padding-left: 2rem;
  }
  
  .step-number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
}