body {
  font-family: Poppins;
}

html, body {
  height: auto;
  width: auto;
  overflow-y: auto;
  overflow-x: auto;  /* Enables horizontal scrolling */
}

.companyHeader {
  margin-left: 10%;
}

#companyName {
  color: #e64918;
  float: left;
  font-size: xx-large;
  font-weight: bolder;
}

.formContainer {
  margin-top: 20%;
  margin-left: 10% !important;
}

#detailsInfo {
  position: relative;
  color: #758794;
}

.primaryAction {
  background-color: #e64918;
  border-radius: 25px;
  border: none;
  width: 50%;
}

#id_auth-username, #id_auth-password, #company_domain {
  background-color: #f1f5f8;
  border-radius: 25px;
  color: #a6b1ba;
  opacity: 1; /* Firefox */
}

#div_id_auth-username, #div_id_auth-password {
  display: flex;
  justify-content: center;
  margin-bottom: 1em !important;
}

#div_id_auth-remember_me {
  display: flex;
  justify-content: center;
  margin-top: 5%;
  color: #8797a2 !important;
}

.secondaryAction {
  color: #32444f !important;
}

.input-wrapper {
  display: inline-block;
  position: relative;
  padding-right: 2%;
}

.user:after {
  font-family: 'FontAwesome';
  content: '\f007';
  position: absolute;
  right: 9%;
  top: 20%;
  color: #d7dee4;
}

.password:after {
  font-family: 'FontAwesome';
  content: '\f069';
  position: absolute;
  right: 9%;
  top: 25%;
  color: #d7dee4;
}

.root-container {
  position: relative; /* Change from fixed */
  margin: auto;
  min-height: 100vh;  /* Use min-height instead of fixed height */
  max-width: 3200px !important;	  min-width: 100vw;
}

.imageContainer {
  background-image: url("/static/images/loginPageImage.jpg?983030930b26");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.column {
  float: left;
  width: 50%;
  padding: 10px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 760px) {
  .column {
    width: 100%;
    height: 50%;
  }

  .companyHeader {
    padding: 0.2rem !important;
  }

  .formContainer {
    margin-top: 0%;
    left: 30% !important;
  }

  #div_id_auth-remember_me, .submitButton, #forgot_password {
    margin-left: 10% !important;
  }

  .imageContainer {
    margin-left: 5%;
    min-width: 100vw; /* Prevents shrinking */
    min-height: 100vh;
  }
}

.submitButton {
  display: flex;
  justify-content: center;
}

.pageContainer {
  min-height: 100vh;
  min-width: 100vw;
}

.center {
  margin-top: 20%;
}

h1 {
  color: #091f2d;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #a6b1ba !important;
  opacity: 1 !important; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #a6b1ba !important;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #a6b1ba !important;
}

@media only screen and (max-width: 1700px) {
  .formContainer h1 {
    font-size: 1.5rem;
  }

  #signInText {
    margin-left: 10%;
  }

  #detailsInfo {
    margin-left: 15%;
    font-size: small;
  }

  .user:after {
    top: 10%;
  }

  .password:after {
    top: 11%;
  }

  #div_id_auth-remember_me, .submitButton, #forgot_password {
    justify-content: center !important;
    margin-top: 2%;
  }

  .primaryAction {
    display: block;
    font-size: 14px;
  }

  #id_auth-username, #id_auth-password {
    height: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .formContainer {
    left: 15% !important;
  }
}

@media only screen and (min-width: 481px) and (max-width: 580px) {
  .formContainer {
    left: 25% !important;
  }
}

@media only screen and (min-width: 1701px) {
  #signInText {
    position: relative;
    margin-left: 20%;
    margin-right: 20%;
  }

  #detailsInfo {
    margin-left: 28%;
    margin-bottom: 2%;
    margin-right: 25%;
  }

  .align-items-center {
    margin-left: 10% !important;
    margin-right: 10% !important;
  }

  #id_auth-username, #id_auth-username {
    height: 40px;
  }
}

#ssoDetails {
  color: #758794;
}

#companyLogo, #forgot_password {
  display: none;
}

/* Two-step verification styles */

.verification-description {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.code-hint {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.send-code-btn {
  background-color: white !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 25px !important;
  padding: 0.625rem 1.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.send-code-btn:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
}

.signin-btn {
  background-color: #e64918 !important;
  color: white !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 0.625rem 2.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
}

.signin-btn:disabled {
  background-color: #e64918 !important;
  opacity: 0.5;
  cursor: not-allowed;
}

.signin-btn:hover:not(:disabled) {
  background-color: #c73d14 !important;
  opacity: 1;
}

.signin-btn:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.sso-link {
  color: #2563eb !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sso-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* Style for the verification code input */
#id_token-otp_token {
  border: 2px solid #3b82f6 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  background-color: white !important;
  color: #374151 !important;
  transition: all 0.2s ease;
}

#id_token-otp_token:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#id_token-otp_token::placeholder {
  color: #9ca3af !important;
}

/* Remove number input spinners (up/down arrows) */
#id_token-otp_token::-webkit-outer-spin-button,
#id_token-otp_token::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

#id_token-otp_token[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Update label styling for verification code */
label[for="id_token-otp_token"] {
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* OTP Banner Notification Styles */
.otp-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  border-radius: 8px;
  padding: 16px 50px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 400px;
  max-width: 600px;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.otp-banner.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.otp-banner.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.otp-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.otp-banner-icon {
  font-size: 20px;
  font-weight: bold;
}

.otp-banner.success .otp-banner-icon {
  color: #28a745;
}

.otp-banner.error .otp-banner-icon {
  color: #dc3545;
}

.otp-banner-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  transition: opacity 0.2s;
}

.otp-banner.success .otp-banner-close {
  color: #155724;
}

.otp-banner.error .otp-banner-close {
  color: #721c24;
}

.otp-banner-close:hover {
  opacity: 1;
}

/* Banner Animations */
@keyframes slideDown {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    top: 20px;
    opacity: 1;
  }
  to {
    top: -100px;
    opacity: 0;
  }
}

.otp-banner.slide-up {
  animation: slideUp 0.3s ease-out;
}

/* Responsive banner styling */
@media screen and (max-width: 760px) {
  .otp-banner {
    min-width: 90%;
    max-width: 90%;
    padding: 14px 40px;
    font-size: 14px;
  }
}
