/* --- МОДАЛЬНЫЕ ОКНА АВТОРИЗАЦИИ --- */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding-bottom: 20px;
}

.auth-modal.active {
  opacity: 1;
  display: flex;
}

.auth-modal-content {
  background: #222;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: white;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
  margin-bottom: 60px;
}

.auth-modal.active .auth-modal-content {
  transform: scale(1);
}

.auth-modal h2 {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 500;
}

.auth-modal p {
  margin: 0 0 30px 0;
  font-size: 16px;
  color: #ccc;
  line-height: 1.5;
}

.auth-modal button {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 120px;
}

.auth-modal button:hover {
  background-color: #357ABD;
}

.auth-modal button:active {
  transform: scale(0.98);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
  .auth-modal {
    padding-bottom: 40px;
  }
  
  .auth-modal-content {
    /*padding: 30px 20px;*/
    margin: 20px;
    margin-bottom: 80px;
  }
  
  .auth-modal h2 {
    font-size: 20px;
  }
  
  .auth-modal p {
    font-size: 14px;
  }
}

/* Специально для iPhone с notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .auth-modal {
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  
  .auth-modal-content {
    margin-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  
  @media (max-width: 480px) {
    .auth-modal {
      padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
    
    .auth-modal-content {
      margin-bottom: calc(80px + env(safe-area-inset-bottom));
    }
  }
} 