body {
  background: #e6e8ff;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
}
#mainDiv {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -2rem;
}
.login-navbar {
  display: flex;
  padding: 2rem;
  justify-content: space-between;
  align-items: center;

  height: 2rem;

  .main-logo{
    img {
      filter: saturate(1.8);
      max-height: 1.6rem;
    }
  }

  .server-mode {
    font-style: normal;
    background-color: orangered;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 0.5rem;

    p {
      font-weight: bold;
      margin: 0;
    }
  }
}
.login-container {
  display: flex;
  flex-direction: row;
  align-content: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 1100px;
  height: 650px;
  width: 100%;
  margin: 40px 0;

  /* Input component container */
  .component {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
  }

  /* Label styling */
  .component .itemLabel {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2d3748;
  }

  /* Input field styling */
  .component .inputBox,
  .component .field-style {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #22223b;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
  }

  /* Rounded class for extra rounding */
  .component .rounded {
    border-radius: 8px;
  }

  /* Focus state */
  .component .inputBox:focus,
  .component .field-style:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 2px #e0e7ff;
  }

  /* Error state (add .error to .component or input if needed) */
  .component.error .inputBox,
  .component.error .field-style,
  .component .inputBox.error,
  .component .field-style.error {
    border-color: #e53e3e;
    background: #fff5f5;
  }

  /* Password reveal icon (if you add one) */
  .component.password {
    position: relative;
  }
  .component.password .toggle-password {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #a0aec0;
    font-size: 1.1em;
    z-index: 2;
  }

  /* For subdomainbox, if it uses a select */
  .component select.inputBox,
  .component select.field-style {
    appearance: none;
    background: #f8fafc
      url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
      no-repeat right 12px center/18px 18px;
    padding-right: 36px;
  }

  /* Optional: Remove number input spinners for a clean look */
  .component input[type="number"]::-webkit-outer-spin-button,
  .component input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  .component input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
  }
}
.login-illustration {
  /* background: linear-gradient(135deg, #e3eafc 0%, #f5f7fa 100%); */
  background-image: radial-gradient(#d4d4ff 1px, transparent 0.5px);
  background-size: 13px 13px;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54%;
  min-height: 420px;
  padding: 32px;
  border-right: 1px dashed rgb(202, 219, 255);
}
.login-illustration img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.login-form-section {
  flex: 1;
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;

  .organisation-container {
    position: absolute;
    top: 2rem;
    background: #e6e8ff;
    color: #645697;
    width: max-content;
    left: 50%;
    height: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    translate: tran;
    transform: translateX(-50%);
    border-radius: 1rem;
    padding: 0 2rem;
  }
}
.headerLogo {
  text-align: center;

  img {
    border-radius: 0.5rem;
  }
}
.signupInfoInLoginDisplay {
  color: #3178c6;
  background: #eaf4ff;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
}
.outerBox {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
#loginBox {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
#login-form .items {
  padding: 0;
}
.itemButton {
  margin-top: 18px;
}
.oneloginbtn input[type="submit"] {
  width: 100%;
  padding: 12px 0;
  font-size: 17px;
  background: #3178c6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.oneloginbtn input[type="submit"]:hover {
  background: #255ea8;
}
.clear {
  clear: both;
}
@media (max-width: 900px) {
  body {
    margin: 1rem;
  }
  .login-container {
    flex-direction: column;
    max-width: 98vw;
  }
  .login-illustration {
    display: none;
  }
  .login-form-section {
    padding: 24px 12px 24px 12px;
  }
}
@media (max-width: 600px) {

  #mainDiv {
    margin-top: 0;
  }

  .login-navbar {
      padding: 1rem 1rem;
  }
  .login-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-illustration {
    min-height: 120px;
    padding: 12px 0 0 0;
  }
  .login-form-section {
    padding: 16px 4vw 16px 4vw;
  }
}
.none {
  display: none;
}
#forgetPasswordText {
  color: var(--accent-color);
  font-size: 0.9rem !important;
  &:hover {
    text-decoration: underline;
  }
}

#pageErrorDisplay {
  * {
    color: red;
    font-size: 0.8rem;
  }

  #messageBox {
    padding: 0 !important;
  }

  width: auto;
  margin: auto;
}







/* This is new test */


#mainDiv.onebg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container-main-form {
  display: flex;
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 99;

  .form-section-separator {
    display: grid;
    place-items: center;
    text-align: center;
    background: #e1e9f3;
    color: gray;
    padding: 0.1rem;
    font-size: 0.8rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 5rem;
    font-weight: 600;
    align-self: center;
    border: 8px solid white;
  }


.form-section-separator::after {
  content: "";
  height: 85%;
  width: 1px;
  background: #cbd5e1;
  background: linear-gradient(to bottom, #ffffff 0%, #cbd5e1 50%, #ffffff 100%);
  /* border: 5px solid gray; */
  position: absolute;
  z-index: -2;
}

  .login-form-section:first-child {
    padding: 3rem;
    padding-left: 4rem;
  }
  
  .login-form-section:last-child {
    padding: 3rem;
    padding-right: 4rem;
  }
}

/* The Main Card */
.login-card-modern {
    background: #ffffff;
    width: 100%;
    max-width: 420px; 
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
}

/* Header/Logo Area */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header img {
    max-height: 50px; /* Ensure logo isn't too huge */
}

/* Form Elements Styling */
.component.textbox, .component.password {
    margin-bottom: 15px;
    width: 100%;
}

.itemLabel {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-align: left;
}

/* Force Inputs to look modern */
.inputBox {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box; /* Important for padding */
    transition: border-color 0.2s;
}
.inputBox:focus {
    border-color: #2563eb; /* Primary Blue */
    outline: none;
}

/* Buttons */
.itemButton input[type="submit"], button[name="sendOtp"] {
    width: 100%;
    padding: 12px;
    background-color: #2563eb; /* Primary Blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}
.itemButton input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Specific style for Send OTP to differentiate it */
button[name="sendOtp"] {
    background-color: #e5e7eb;
    color: #374151;
    margin-bottom: 15px;
}
button[name="sendOtp"]:hover {
    background-color: #d1d5db;
}

/* The "OR" Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #9ca3af;
}
.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}
.or-divider:not(:empty)::before {
    margin-right: .5em;
}
.or-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Footer links */
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}
.forgot-password-link a {
    color: #2563eb;
    text-decoration: none;
}

/* Style for disabled state when HIDE_FUTURE_STEPS = false */
.component {
    transition: opacity 0.3s ease;
}

/* Success state for the Send OTP button */
.buttonSuccess {
    background-color: #28a745 !important;
    color: white !important;
    border: 1px solid #28a745 !important;
}

/* Input Valid State */
input.valid-input {
    border-color: #28a745;
    background-color: #f0fff4;
}

/* Resend Link */
#resendLink {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}
#resendLink:hover {
    color: #0056b3;
}

.bigdomaininput {
  padding-left: 68px !important;
  padding-right: 130px !important;
}
#domainPart1 {
  color: #0d5687;
  position: absolute;
  top: 36px;
  left: 12px;
  width: fit-content;
}
#domainPart2 {
  color: #0d5687;
  position: absolute;
  top: 36px;
  right: 42px;
  width: fit-content;
}
#domainPart1, #domainPart2 {
  position: absolute;
  bottom: 9px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 5;
  font-family: 'Outfit', sans-serif;
}
.subdomain {
  position: relative;
}