/* ==================== 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: 10px;
}

/* ==================== 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: 420px;
  margin: 0 auto;
}

.form-section h2 {
  margin-bottom: 5px;
  font-weight: 600;
  color: #0b6623;
  text-align: center;
  font-size: 22px;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 15px;
  font-size: 13px;
}

/* ==================== FORM ROW ==================== */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row .input-group {
  flex: 1;
}

/* ==================== FLOATING INPUT FIELDS ==================== */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  background: #f8f8f8; 
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid #000;
  transition: all 0.3s ease;
  overflow: visible; 
}

.input-group:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* --- ERROR STATE --- */
.input-group.error {
  border-color: #c1272d !important;
  background-color: #fff0f0;
}
.input-group.error i { color: #c1272d !important; }
.input-group.error label { color: #c1272d !important; background-color: #fff0f0 !important; }
.input-group.error input:focus ~ label,
.input-group.error input:not(:placeholder-shown) ~ label {
  background-color: #fff !important;
}

/* --- VALIDATION TOOLTIP --- */
.validation-tooltip {
  position: absolute;
  bottom: 100%; 
  top: auto;   
  left: 0;
  z-index: 100;
  
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
  
  display: flex;
  align-items: center;
  gap: 8px;
  
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  pointer-events: none;
  
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
  visibility: hidden;
}

.validation-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15px;
  border-width: 5px;
  border-style: solid;
  border-color: #ccc transparent transparent transparent;
}

.validation-tooltip.active,
.input-group:hover .validation-tooltip.info-hover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #ff9800; /* Orange */
  color: white;
  font-weight: bold;
  font-size: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-icon::before {
  content: "!";
}

.input-group.info .validation-tooltip .tooltip-icon,
.tooltip-icon.blue {
  background-color: #2a9d8f;
  content: "i"; 
}
.input-group.info .validation-tooltip .tooltip-icon::before {
  content: "✓";
}
.tooltip-icon.blue::before {
  content: "i"; 
}


/* --- Standard Input Styles --- */
.input-group i:not(.view-icon) {
  position: absolute;
  left: 12px;
  color: #000;
  font-size: 14px;
  z-index: 10;
}

.input-group input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #000;
  border-radius: 6px;
  height: 40px;
}

.view-icon {
  position: absolute;
  right: 10px;
  color: #0b6623 !important;
  font-size: 16px;
  cursor: pointer;
  z-index: 20;
}

.input-group input[type="file"] {
  padding-top: 8px; 
  padding-right: 35px;
  font-size: 12px;
}

.input-group label {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f8f8f8; 
  padding: 0 4px;
  font-size: 13px;
  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: 10px;
  font-size: 10px;
  font-weight: 600;
  color: #0b6623; 
  background-color: #fff; 
}

.email-domain {
  font-size: 12px;
  font-weight: 500;
  color: #0b6623;
  margin-right: 8px;
}

/* ==================== BUTTON ==================== */
.register-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px solid #000;
  border-radius: 8px;
  background: #f5f5f5;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 5px;
  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: 10px;
  text-align: center;
  font-size: 13px;
}

.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 {
    padding: 20px;
  }
  .left-panel img {
    width: 80px;
    height: 80px;
  }
  .right-panel {
    padding: 20px;
  }
}

/* ==================== MODALS ==================== */
.hidden { display: none !important; }

.crop-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.crop-modal-content {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
}

.crop-image-container {
  max-height: 50vh;
  overflow: hidden;
  margin-bottom: 10px;
}

#cropImage { display: block; max-width: 100%; }

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.crop-actions button {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 13px;
}

.btn-secondary { background-color: #f0f0f0; color: #555; }
.save-btn { background-color: #0b6623; color: #fff; }