/**
 * Stylesheet: /public/css/register.css
 * Updated: 2025-10-23
 * Responsive Steam Factory Portal registration form
 */

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #111, #333);
  color: #fff;
  margin: 0;
  padding: 2rem 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.sf-form-card {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffcc00;
  border-radius: 12px;
  padding: 2rem 3rem;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
  max-width: 480px;
  width: 90%;
  box-sizing: border-box;
  margin: auto;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffcc00;
  text-align: center;
}

form {
  text-align: left;
  margin-top: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #ffcc00;
}

input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #666;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 1rem;
}

input:focus {
  border-color: #ffcc00;
  outline: none;
}

button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: #ffcc00;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #fff000;
}

.error,
.success {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.sf-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
}

.sf-links a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 0.5rem;
}

.sf-links a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Recaptcha wrapper */
.g-recaptcha-wrapper {
  background: radial-gradient(circle at 30% 20%, #222 0%, #111 80%);
  border: 2px solid #ffcc00;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.2), inset 0 0 8px #000;
  padding: 0.75rem 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Small-screen adjustments */
@media (max-width: 600px) {
  body { padding: 1rem 0; }
  .sf-form-card { padding: 1.5rem; width: 95%; }
  input, button { font-size: 0.95rem; }
  h1 { font-size: 1.3rem; }
}
