:root {
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-red: #ff3e3e;
  --accent-orange: #ff6d3a;
  --error-red: #ff4444;
  --success-green: #4caf50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.register-container {
  background-color: var(--bg-darker);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  padding: 30px;
  border-top: 3px solid var(--accent-red);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent-orange);
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(255, 109, 58, 0.2);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  color: var(--error-red);
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
}

.login-link a {
  color: var(--accent-orange);
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
