/* V262 — compact, consistent registration fields on mobile and desktop. */
#registerForm{
  margin-top:18px;
}

#registerForm .form-grid{
  gap:14px 16px;
  align-items:start;
}

#registerForm .field{
  min-width:0;
  margin-bottom:0;
  gap:7px;
}

#registerForm .field label{
  font-size:14px;
  line-height:1.5;
}

#registerForm .field input,
#registerForm .field select{
  width:100%;
  min-height:52px;
  padding:0 14px;
  border-radius:10px;
  background:var(--surface);
  font-size:16px;
  line-height:1.4;
}

#registerForm input[name="email"],
#registerForm input[name="phone"]{
  direction:ltr;
  text-align:left;
}

#registerForm input:-webkit-autofill,
#registerForm input:-webkit-autofill:hover,
#registerForm input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  -webkit-box-shadow:0 0 0 1000px var(--surface) inset;
  caret-color:var(--text);
}

#registerForm #turnstileRegister{
  margin-top:2px;
  overflow:hidden;
}

#registerForm > .btn{
  min-height:52px;
  margin-top:14px;
  border-radius:10px;
}


#registerForm .student-register-password-section{
  display:grid;
  gap:8px;
}

#registerForm .student-register-password-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px 16px;
  align-items:start;
}

#registerForm .student-register-password-grid .field{
  margin:0;
}

#registerForm .student-register-password-control{
  position:relative;
  display:flex;
  align-items:center;
}

#registerForm .student-register-password-control input{
  width:100%;
  padding-inline-end:74px;
}

#registerForm .student-register-password-toggle{
  position:absolute;
  inset-inline-end:8px;
  top:50%;
  transform:translateY(-50%);
  min-width:56px;
  min-height:36px;
  padding:0 9px;
  border:0;
  border-radius:9px;
  background:color-mix(in srgb,var(--p) 10%,var(--surface-2));
  color:var(--p);
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

#registerForm .student-register-password-toggle:hover{
  background:color-mix(in srgb,var(--p) 16%,var(--surface-2));
}

#registerForm .student-register-password-toggle:focus-visible{
  outline:2px solid var(--p);
  outline-offset:2px;
}

#registerForm .student-register-password-hint{
  display:block;
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

@media(max-width:700px){
  #registerForm{
    margin-top:16px;
  }

  #registerForm .form-grid{
    gap:12px;
  }

    #registerForm .field{
    margin:0;
  }

  #registerForm .field input,
  #registerForm .field select{
    min-height:50px;
    padding-inline:14px;
    font-size:16px;
  }

  #registerForm > .btn{
    min-height:50px;
    margin-top:10px;
  }
}

@media(max-width:430px){
  #registerForm .form-grid{
    gap:10px;
  }

  #registerForm .field label{
    font-size:13px;
  }

  #registerForm .field input,
  #registerForm .field select{
    min-height:48px;
  }
}
