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

body {
  font-size: 16px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: visible;
  display: flex;
  font-family: var(--main-font-family);
}

.logoContainer {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-weight: 600;
}

.logoContainer h1 {
  font-size: 20px;
  margin: 0;
  padding: 0;
  opacity: 0.94;
}
.logoContainer button {
  opacity: 0.94;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-width: 0;
  overflow-y: visible;
  margin-top: -20px;
}

.container,
.rightCont {
  opacity: 0; 
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.show-register .container {
  transform: translateX(-100%);
  opacity: 1;
}

body.show-register .rightCont {
  transform: translateX(90%);
  opacity: 1;
}

body.show-login .container {
  transform: translateX(0%);
  opacity: 1;
}

body.show-login .rightCont {
  transform: translateX(0%);
  opacity: 1;
}

.hidden {
  display: none !important;
}

#form {
  scale: calc(1.04);
  margin: 20px;
}

#loginBox,
#registerBox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loginBox form,
#registerBox form {
  padding: 20px 40px;
}

/* #loginBox{
  animation: fadeUp 0.6s ease forwards;
}
#registerBox{
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.rightCont {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-width: 0;
  overflow-y: visible;
  position: relative;
  z-index: 0;
  overflow: hidden;
  scale: calc(1.15);
}

.rightCont::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: 0;
}

.innerCont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.rightCont h1 {
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rightCont p {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1rem;
}

.svg-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  width: 100%;
}

.svg-container img {
  max-width: 85%;
  height: auto;
}

form {
  width: 100%;
  max-width: 400px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.separator {
  display: none;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.holder {
  width: 100%;
  border: none;
  border-radius: 12px;
  height: 3rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: var(--box-color);
  color: var(--text-color);
  transition: border-color 0.3s ease, border 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.holder:focus {
  outline: none;
  border: 1px solid;
  border-color: var(--primary-color);
}

.submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  height: 3rem;
  box-sizing: border-box;
  /* avoid negative margins that cause overlap/clipping on larger screens */
  margin-bottom: 0;
}
.submit:hover {
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  color: #fff;
}
.submit:active {
  transform: translateY(0);
}

#email-div,
#pass-div {
  position: relative;
}
.container #email-div label,
.container #pass-div label {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: transparent;
  padding: 0 2px;
}
.email-icon,
.lock-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

#changePage {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

#changePage a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

#changePage a:hover {
  text-decoration: underline;
}

#changetoregcomp {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

#changetoregcomp a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

#changetoregcomp a:hover {
  text-decoration: underline;
}

/* Generic labels for inputs on login/register pages */
.reg {
  position: relative;
  scale: calc(0.85);
}

.inp {
  margin-top: 20px;
}

.inp label {
  z-index: 1;
  position: absolute;
  left: 0px;
  top: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0.35rem 0.3rem;
}

.reg-label {
  z-index: 1;
  position: absolute;
  left: 0px;
  top: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0.35rem 0.3rem;
}

.container .gender-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.gender-label {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.gender-box label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.gender-options {
  margin-top: 30px;
  display: flex;
  gap: 5rem !important;
  margin-left: 5px;
}

.gender-options label {
  display: flex;
  align-items: center;
  gap: 4px;
}

#goBack {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--box-shadow);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.2s ease;
}

#goBack:hover {
  background: var(--primary-color);
  color: var(--background-color);
  border-color: var(--primary-color);
}

label {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.eyeIcon {
  position: absolute;
  right: 15px;
  top: -25px;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
  display: none;
  animation: moveUp 0.2s ease-in-out;
}
#eyeIcon1,
#eyeIcon2 {
  top: 12px;
  right: 20px;
}
.eyeIcon:hover {
  cursor: pointer;
  color: var(--primary-color);
}

.eyeIcon svg {
  width: 100%;
  height: 100%;
}

.eyeIcon.hideEyeIcon {
  animation: moveDown 0.3s ease-in-out;
}

#errorMsg , #errorMsgLogin {
  color: var(--error);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 5px;
}


#companyRegisterForm {
  all: revert;
  width: 100%;
  max-width: 400px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--background-color);
  box-sizing: border-box;
}

#companyRegisterForm .inp {
  margin-top: 20px;
}

#companyRegisterForm .holder,
#companyRegisterForm .submit {
  width: 100%;
}
#companyRegisterForm .holder{
 font-size: 12px;
 font-weight: bold;
}

#companyRegisterForm .address {
  display: flex;
  flex-direction: column;

}

#companyRegisterForm .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#email-div-company {
  position: relative;
}

#email-div-company .email-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}


#forgetPassword{
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
#forgetPassword a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.submit-wrapper {
  position: relative;
  width: 100%;
}

.submit.loading {
  pointer-events: none;
  cursor: not-allowed;
  color: transparent !important;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -11px;
  margin-left: -11px;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spinner 0.8s linear infinite;
  z-index: 10;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 768px) {
  #companyRegisterForm {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
  }

  #companyRegisterForm .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  #companyRegisterForm {
    padding: 1rem;
  }

  #companyRegisterForm .holder,
  #companyRegisterForm .submit {
    font-size: 0.85rem;
    height: 3.0rem;
  }

  #companyRegisterForm .grid {
    grid-template-columns: 1fr;
  }
}


@keyframes moveUp {
  0% {
    transform: translateY(7px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes moveDown {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(7px);
  }
}

@media (max-width: 1160px) {
  .logoContainer {
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 9999 !important;
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding: 1rem 1.5rem; 
  }

  .rightCont {
    padding: 1.5rem 2rem;
  }

  .innerCont {
    max-width: 450px;
  }

  .rightCont h1 {
    font-size: 2rem;
  }

  .rightCont p {
    font-size: 1rem;
  }

  .svg-container img {
    max-width: 90%;
  }

  form {
    max-height: calc(100vh - 180px); 
    overflow-y: auto;                
  }

   h1 {
    font-size: 1.7rem; 
  }

  .holder,
  .submit {
    height: 2.7rem;    
    font-size: 0.95rem;
  }
}

@media (min-width: 1440px) {
  .container {
    padding: 4rem 3rem;
  }

  .rightCont {
    padding: 4rem 3rem;
  }

  .innerCont {
    max-width: 400px;
  }

  .rightCont h1 {
    font-size: 1.5rem;
  }

  .rightCont p {
    font-size: 0.95rem;
  }

  form {
    max-width: 400px;
  }

  form .holder,
  form .submit {
    font-size: 1rem;
    height: 2.8rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    font-size: 15px;
    overflow: visible;
  }

  .logoContainer {
    position: absolute !important;
    top: 20px !important;
    left: 0 !important;
    padding: 0;
    margin-bottom: 1rem;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .logoContainer h1 {
    font-size: 18px;
  }

  .rightCont {
    margin: 0 !important;
    flex: unset;
    width: 100%;
    margin-top: 0;
    margin-bottom: 80px !important;
    padding: 120px 1rem 1rem;
    height: auto;
    box-sizing: border-box;
    overflow-y: visible;
  }
  .container {
    margin-bottom: 20px !important;
  }

  .rightCont::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to left,
      var(--primary-color),
      var(--secondary-color)
    );
    z-index: 0;
  }

  body.show-register .rightCont {
    animation: fadeRightContReg 0.8s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  }
  @keyframes fadeRightContReg {
    from {
      opacity: 0.2;
      transform: translateX(0%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }

  body.show-register .container {
    animation: fadeContReg 0.8s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  }
  @keyframes fadeContReg {
    from {
      opacity: 0.2;
      transform: translateX(0%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }
  body.show-login .rightCont {
    animation: fadeRightContLogin 0.8s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  }
  @keyframes fadeRightContLogin {
    from {
      opacity: 0.2;
      transform: translateX(0%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }

  body.show-login .container {
    animation: fadeContLogin 0.8s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  }
  @keyframes fadeContLogin {
    from {
      opacity: 0.2;
      transform: translateX(0%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }

  .innerCont {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .innerCont h1 {
    font-size: 1.8rem;
  }

  .innerCont h1,
  .innerCont p {
    word-wrap: break-word;
    padding: 0 30px;
  }

  .svg-container {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .svg-container img {
    max-width: 90%;
    height: auto;
  }

  .separator {
    display: block;
    width: 90%;
    border: 0;
    height: 1px;
    background: var(--text-muted);
    margin: 1.5rem auto;
  }

  .container {
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-y: visible;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
    box-sizing: border-box;
  }

  .holder,
  .submit {
    font-size: 1rem;
    height: 3.2rem;
    width: 100%;
    box-sizing: border-box;
  }

  #changePage {
    font-size: 0.95rem;
    text-align: center;
  }

  #changePage button {
    font-size: 0.95rem;
  }

  #goBack {
    bottom: 15px;
    left: 15px;
    padding: 6px 10px;
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  form {
    margin-top: 1rem;
    padding: 1rem;
    gap: 1rem;
  }

  h1 {
    font-size: 1.4rem;
    margin: 0 auto;
  }

  .holder,
  .submit {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  #changePage {
    font-size: 0.85rem;
  }

  .rightCont {
    margin: 0;
  }
  .container {
    transform: none;
  }

  #form {
    padding: 20px 10px;
  }

  .gender-box {
    margin: -5px 0;
  }

  .reg {
    margin-bottom: 5px;
  }
  .reg label {
    font-size: 0.9rem !important;
  }
}

