:root {
  --primary: #ff9800;
  --dark: #111;
  --light: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--light);
  color: #333;
}

header {
  background: var(--dark);
  color: white;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 60px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--primary);
}

.hero {
  background: white;
  padding: 80px 10%;
  text-align: center;
}

.hero h1 {
  font-size: 45px;
}

.hero span {
  color: var(--primary);
}

.section {
  padding: 60px 10%;
  text-align: center;
}

.players {
  display:flow-root;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.join {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 60px 10%;
}

.join button {
  background: var(--primary);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 5px;
}

footer {
  background: black;
  color: #aaa;
  text-align: center;
  padding: 15px;
}
.register-form{
  max-width:400px;
  margin:30px auto 0;
  display:none;   /* FORM HIDDEN */
  flex-direction:column;
  gap:12px;
}

.register-form input,
.register-form select{
  padding:10px;
  border-radius:5px;
  border:1px solid #ccc;
}

.register-form input:focus,
.register-form select:focus{
  outline:none;
  border-color:#ff9800;
}

.register-form button{
  background:#ff9800;
  color:white;
  border:none;
  padding:12px;
  font-size:16px;
  font-weight:bold;
  border-radius:5px;
  cursor:pointer;
}

.register-form button:hover{
  background:#e68900;
}
.search-box{
  width:100%;
  max-width:300px;
  padding:10px;
  margin:0 auto 30px;
  display:block;
  border-radius:5px;
  border:1px solid #ccc;
}

.players{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
}

.card{
  background:white;
  padding:15px;
  border-radius:8px;
  text-align:center;
  box-shadow:0 4px 8px rgba(0,0,0,0.1);
}

.card img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:10px;
}
/* ===== REGISTRATION FORM ===== */
.register-form {
  max-width: 420px;
  margin: 30px auto 0;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* INPUTS & SELECT */
.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: inherit;
}

/* TEXTAREA */
.register-form textarea {
  resize: none;
  min-height: 80px;
}

/* FOCUS EFFECT */
.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 2px rgba(255,152,0,0.2);
}

/* FILE INPUT */
.register-form input[type="file"] {
  padding: 6px;
}

/* SUBMIT BUTTON */
.register-form button {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

/* BUTTON HOVER */
.register-form button:hover {
  background: #e68900;
  transform: translateY(-1px);
}

/* MOBILE */
@media (max-width: 480px) {
  .register-form {
    padding: 20px;
  }
}
