@import "./style.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

body{
  height: 100vh;
  display: grid;
  place-content: center;
}

@media (max-width: 767px) {
  body{
    height: auto;
    display: block !important;
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
}

#registerForm{
  padding: 35px 30px;
  width: 800px;
  margin: auto;
  border: 8px solid white;
  transition: var(--transition-Time);
  border-radius: 20px;
  transform: scale(0.8);
  box-shadow: 0px 0px 20px var(--secondary-color);
}

/* Dark Mode Form */
body.dark #registerForm {
  border: 8px solid var(--surface-color);
  background-color: var(--surface-color);
}

@media (max-width:767px) {
  body {
    height: auto;
    display: block !important;
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
  #registerForm{
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    border: none;
    border-radius: 0;
    padding: 30px 10px; /* Reduced side padding slightly */
    transform: scale(1) !important;
    box-shadow: none;
    margin: 0 !important;
    overflow-x: hidden; /* Prevent internal overflow */
  }
}


#registerForm .logo{
  width: 255px;
  height: 180px;
  /* height: 200px; */
  margin: auto;
  overflow: hidden;
  display: grid;
  place-content: center;
  margin-bottom: 40px;
}

@media (max-width:767px) {
  #registerForm .logo{
    margin: 30px auto 75px;
  }
}
#registerForm .logo img{
  width: 100%;
  max-width: 250px;
  height: auto;
}
#registerForm .info{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width:767px) {
  #registerForm .info{
    flex-direction: column;
    width: 100%;
  }
}
#registerForm .info .leftInfo,
#registerForm .info .rightInfo{
  width: calc(50% -  20px);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  



}

@media (max-width:767px) {
#registerForm .info .leftInfo,
#registerForm .info .rightInfo{
    width: 100%;
    margin-bottom: 0;
  }
}
 
#registerForm label{
  font-size: 22px;
}
#registerForm .info  label{
  margin-bottom: 5px;
  color: var(--secondary-color);
  font-weight: bold;
}
#registerForm .info  input:not([type="submit"]){
  padding: 10px;
  margin-bottom: 20px;
  font-size: 20px;
  border: none;
  color: var(--primary-color);
}

/* Dark Mode Inputs */
body.dark #registerForm .info input:not([type="submit"]) {
  background-color: var(--bg-color);
}

#alert,
#confirmAlert{
  font-size: 13px;
  color: var(--danger-color);
}
#registerForm select{
  padding: 10px;
}
#registerForm .info input:focus,
#registerForm select{
  outline: none;
}
/* Mobile Specific Fixes */
@media (max-width: 767px) {
  #registerForm .info,
  #registerForm .info .leftInfo,
  #registerForm .info .rightInfo,
  #registerForm .info input:not([type="submit"]),
  #registerForm select,
  #registerForm .password-field,
  #registerForm > input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  #turnstile-widget,
  .cf-turnstile {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* Dark Mode Selects */
body.dark #registerForm select {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

/* Ensure options are legible */
body.dark #registerForm select option {
  background-color: var(--surface-color);
  color: var(--text-color);
}


#registerForm > input[type="submit"]:hover{
background-color: var(--secondary-color);
box-shadow: 0px 0px 20px var(--secondary-color);
}

/* Dark Mode Button Hover */
body.dark #registerForm > input[type="submit"]:hover {
  background-color: #1e40af; /* Darker Navy/Blue */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.password-field {
  position: relative;
  margin-bottom: 20px;
}
.password-field input {
  width: 100%;
  margin-bottom: 0 !important;
}
.password-field i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--primary-color);
  font-size: 18px;
  transition: var(--transition-Time);
  display: none;
}
.password-field i:hover {
  color: var(--secondary-color);
}
#registerForm .footer{
  margin-top: 20px;
  font-size: 22px;

}
#registerForm .footer p{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#registerForm .footer a{
  text-decoration: underline;
}

@media (max-width: 767px) {
  #registerForm .footer p{
    margin-top: 35px;
    font-size: 18px;
    gap: 20px;
  }
}

