* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.content {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* === Navbar (starts on the left) === */
.navbar {
  width: 60%;
  height: 100vh;
  background: url("/media/broker_img.jpg") no-repeat center/cover;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 1s ease-in-out;
  z-index: 2;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 38, 140, 0.808);
  z-index: 1;
}

/* Fullscreen state */
.navbar.expand {
  width: 100%;
}

/* Center the logo container */
.imga {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 6;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: relative;
}

.imga img,
.imga h1 {
  z-index: 3;
  position: relative;
  height: 155px;
  font-size: 20px;
  color: white;
  text-align: center;
  font-weight: 400;
}

.imga.fade-in {
  opacity: 1;
}

/* === Login section (on right initially) === */
.log_content {
  width: 40%;
  height: 100vh;
  margin-left: 60%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
  z-index: 3;
}

.log_content.fadeout {
  opacity: 0;
  pointer-events: none;
}

.log_box {
  width: 50%;
}

/* === LOGIN FORM === */
.log_box h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 2px;
  padding-bottom: 5px;
}

.form-group {
  display: flex;
  flex-direction: column;
  padding-top: 15px;
}

.form-group p {
  font-size: 14px;
  color: #5b8c5a;
  padding-top: 5px;
}

.log_boxp {
  padding-bottom: 14px;
}

.form-control {
  padding: 0.6rem 1rem;
  width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  outline: none;
}

.forgot_pw {
  padding-top: 25px;
  display: flex;
  justify-content: center;
  font-size: 14px;
}

.forgot_pw a,
.Email_Support_Text a {
  font-size: 14px;
  text-decoration: none;
  color: #c60751;
  font-weight: 400;
  margin-left: 3px;
}

.Email_Support_Text {
  font-size: 14px;

  text-align: center;
  font-size: 14px;
  padding: 10px 0;
}

.btn_primary {
  width: 100%;
  margin-top: 20px;
  padding: 8px 0;
  border: none;
  background: #c60751;
  color: white;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.btn_primary:hover {
  background: #df4681;
}

/* === ERROR MESSAGE === */
.errormsg {
  background: #c60751;
  padding: 12px;
  color: #fce1eb;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-top: 10px;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

.errormsg p {
  font-size: 14px;
}

.errormsg.show {
  display: flex;
  opacity: 1;
}

.errormsg.hide {
  opacity: 0;
}

#msg_first {
  display: none;
  font-size: 15px;
}

.Forgot_PW_Business_Email,
.Forgot_PW_Business_Email:hover {
  text-decoration: none;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 60px; /* space for button */
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}



@media (max-width: 1280px) {
  .log_box {
    width: 70%;
  }
}

@media (max-width: 600px) {
  .navbar {
    display: none;
  }

  .log_content {
    width: 100%;
    margin-left: 0;
  }
  .log_box {
    width: 75%;
  }
}
