/* Общие стили для тёмной темы */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #121212;
  color: #e0e0e0;
  margin: 0;
}

/* Стили для проверки браузера и капчи */
#loading-screen, #captcha-screen {
  text-align: center;
  background: #1e1e1e;
  padding: 40px 60px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.spinner {
  margin: 20px auto;
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255,255,255,0.1);
  border-top-color: #00c3ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Стили для страницы авторизации */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-box {
  background: #1e1e1e;
  padding: 25px 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.auth-box h2 {
  margin-bottom: 20px;
  font-weight: normal;
  color: #fff;
  text-align: center;
}

.auth-box input {
  width: 100%;
  padding: 8px 10px;
  background: #121212;
  border: 1px solid #333;
  border-radius: 5px;
  color: #fff;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.auth-box label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 5px;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #bbb;
}

.error-message {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

button {
  background-color: #00c3ff;
  color: #121212;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #00a3d1;
}

.cancel {
  background: #333;
  color: #ccc;
}

.cancel:hover {
  background: #444;
}

.cf-turnstile {
    margin: 20px auto;
    display: block;
}

.captcha-box {
    text-align: center;
    padding: 40px;
}