* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #232323;
  color: #f8f9fa;
}

.registration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

.registration-box {
  background: #252525;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #393939;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
}

.form-title {
  color: #f8f9fa;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.registration-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #bbbbbb;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
  width: 100%;
  background-color: #2c2c2c;
  color: #f8f9fa;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #968b9f;
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background-color: #262626;
  border-color: #68ccff;
  box-shadow: 0 0 0 3px rgba(104, 204, 255, 0.2);
}

.form-hint {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.submit-btn {
  width: 100%;
  background-color: #409eff;
  border: 1px solid #3498db;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

.submit-btn:hover {
  background-color: #2178c7;
  border-color: #176092;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.cancel-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #555;
  border: 1px solid #666;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cancel-btn:hover {
  background-color: #666;
  border-color: #777;
}

/* Сообщения об ошибках */
.error-messages {
  background: #ff4444;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #cc0000;
}

.error-text {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* Блок переключения между входом и регистрацией */
.auth-switch {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #393939;
  text-align: center;
}

.auth-text {
  color: #bbbbbb;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.login-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: transparent;
  border: 2px solid #409eff;
  color: #409eff;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-link-btn:hover {
  background-color: #409eff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.login-link-btn:active {
  transform: translateY(0);
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .registration-box {
    padding: 2rem 1.5rem;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
}
