/* ==================== GLOBAL ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../ImagesFolder/coveredCourt.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ==================== CONTAINER ==================== */
.container {
  display: flex;
  width: 1000px;
  height: 600px;
  background: rgba(255, 255, 255, 0.8); 
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  flex-direction: row;
  transition: all 0.3s ease;
}

/* ==================== LEFT PANEL ==================== */
.left-panel {
  background: rgba(11, 102, 35, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 45%; 
  max-width: 45%;
  text-align: center;
  color: white;
  padding: 30px;
}

.left-panel img {
  width: 10rem;
  height: 10rem;
  background: #fff; 
  border-radius: 50%; 
  box-sizing: border-box;
  object-fit: cover; 
  margin-bottom: 15px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transform: translateY(-0.5rem);
}

.left-panel h1 {
  font-size: 22px;
  font-weight: 600; 
  color: #ffd700;
  margin-bottom: 5px;
}

.left-panel p {
  font-size: 12px;
  color: #fff;
  opacity: 0.9;
}

/* ==================== RIGHT PANEL ==================== */
.right-panel {
  flex: 0 0 55%;
  max-width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  padding: 30px 50px; 
  overflow-y: auto;
}

.form-section {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.form-section h2 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #0b6623;
  text-align: center;
  font-size: 26px;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
  font-size: 14px;
}

/* ==================== FLOATING INPUT FIELDS ==================== */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
  border: 1.5px solid #000;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.input-group:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.input-group i {
  position: absolute;
  left: 14px;
  color: #000;
  font-size: 16px;
  z-index: 10;
}

.input-group input {
  width: 100%;
  padding: 12px 14px 12px 45px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #000;
  border-radius: 8px;
}

.input-group label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0 5px;
  font-size: 15px;
  color: #888;
  pointer-events: none;
  transition: 0.2s ease all;
  z-index: 5;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
  top: 0;
  left: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #0b6623;
}

.input-group input:focus {
  background: transparent;
}

/* ==================== BUTTON ==================== */
.register-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #000;
  border-radius: 8px;
  background: #f5f5f5; 
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background: #0b6623;
  color: #fff;
  border-color: #0b6623;
  transform: translateY(-2px);
}

/* ==================== REGISTER LINK (UPDATED) ==================== */
.login-link {
  margin-top: 15px;
  text-align: center;
}

.login-link a {
  text-decoration: none;
  /* UPDATED: Default Black */
  color: #000; 
  font-weight: 500;
  transition: 0.3s;
}

.login-link a:hover {
  /* UPDATED: Hover Green */
  color: #0b6623; 
  text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .container {
    width: 90%;
    height: auto;
    flex-direction: column;
  }
  .left-panel {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 25px;
  }
  .left-panel img {
    width: 120px;
    height: 120px;
    transform: translateY(0); 
  }
  .right-panel {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    border-radius: 0;
  }
  .left-panel img {
    width: 100px;
    height: 100px;
  }
  .form-section h2 {
    font-size: 22px;
  }
  .register-btn {
    font-size: 14px;
    padding: 10px;
  }
  .input-group input {
    font-size: 14px;
  }
}

.error-message {
  color: #c1272d;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #fff0f0;
  border: 1px solid #c1272d;
  border-radius: 8px;
}