/* Reset and base styling */
* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  color: #ffffff;
}

body {
  overflow-x: hidden;
  background-color: #011f2a;
  font-family: 'Segoe UI', -apple-system, Verdana, Helvetica, sans-serif;
}

a {
  color: #04b2ff;
}

div {
  color: #018ea3;
}

input {
  background: none;
  border: none;
  outline: none;
  border: 1px solid #057287;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  background-color: #001821;
  color: #ffffff;
  display: block;
  width: 100%;
}

select {
  background: none;
  border: 1px solid #057287;
  border-radius: 6px;
  padding: 10px 15px;
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;
  background-color: #001821;
  color: #ffffff;
  width: 100%;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px 9px;
}

select option {
  color: #ffffff;
  background-color: #001821;
}

select:focus,
select:active,
select:focus-visible {
  border: 1px solid #057287 !important;
  box-shadow: none !important;
  outline: none !important;
}

input::placeholder {
  text-transform: capitalize;
}

label {
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 12px;
}

.passwordInputContainer {
  display: flex;
  align-items: center;
  background-color: #001821;
  border: 1px solid #057287;
  border-radius: 6px;
}

.passwordInputContainer input {
  width: calc(100% -40px);
  border: 0px solid transparent;
  border-radius: 6px;
}

.passwordInputContainer button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: #ffffff;
}

.passwordInputContainer .eyeIconContainer {
  width: 40px;
  text-align: center;
  height: 100%;
}

.loginsignupBtnBox {
  display: flex;
  justify-content: center;
  margin: 26px 0px;
}

#kc-form-buttons {
  display: flex;
  justify-content: center;
}

.loginsignupBtnInnerBox {
  display: flex;
  gap: 15px;
}

.signupBtnWithBack {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.signupBtnWithBack a {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  color: #04b2ff;
  display: block;
  margin-top: 10px;
}

.primaryBtn1,
#kc-form-buttons input[type="submit"],
#kc-form-buttons button {
  background: none;
  border: none;
  outline: none;
  height: 44px;
  min-height: 36px;
  gap: 10px;
  opacity: 1;
  border-radius: 100px;
  padding-top: 10px;
  padding-right: 30px;
  padding-bottom: 10px;
  padding-left: 30px;
  background-color: #018ea3;
  cursor: pointer;
}

#kc-form-buttons input[type="submit"],
#kc-form-buttons button {
  width: auto;
}

.primaryBtn2 {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  color: #ffffff;
  display: block;
  text-decoration: none;
  background-color: #005865;
  padding-top: 13px;
  border: 1px solid transparent;
}

.activePageBtn:hover {
  background: #00b5cf;
  color: #ffffff !important;
}

.primaryBtn2:hover {
  border: 1px solid #00b5cf;
}

.inputContainers {
  margin-bottom: 15px;
}

.kc-logo-text {
  width: 290px;
  height: 71px;
  background-image: url(../img/dashtera-logo-white-text.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.kc-logo-text span {
  display: none;
}

.mainTopContainer {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #011f2a;
}

.mainTopContainerLeft {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

.mainTopLeftInnerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 520px;
}

.mainTopLeftInnerContainer .kc-logo-text {
  width: 73%;
}

.mainTopLeftInner {
  width: 80%;
}

#kc-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.forgotPasswordContainer {
  text-align: center;
  margin-top: 12px;
}

.forgotPasswordContainer span a {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  color: #04b2ff;
}

.rememberMeCheckbox {
  margin-top: 13px;
}

.rememberMeCheckbox .checkbox {
  width: 100%;
}

.rememberMeCheckbox .checkbox label {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rememberMeCheckbox .checkbox input {
  width: 12px;
  margin-right: 6px;
  margin-top: 2px;
}

.mainTopContainerRight {
  width: 60%;
  background-image: url(../img/heroImage.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease-in-out;
}

.errorPopupContainer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 35px;
}

.errorPopupInnerContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 44px;
  background: #e1333380 0% 0% no-repeat padding-box;
  border-radius: 5px;
  padding: 10px;
  color: white;
  width: 100%;
}

.errorPopupIconContainer {
  width: 27px;
  height: 27px;
  aspect-ratio: 1/1;
  background: #e13434 0% 0% no-repeat padding-box;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 13px;
}

.errorPopupIconContainer img {
  width: 35%;
}

.errorPopupInnerContainer span {
  font: normal normal normal 16px /19px "Roboto", sans-serif;
  color: #ffffff;
}

/* Alerts */
.alert-info .errorPopupInnerContainer {
  background-color: #005f7080 !important;
}

.alert-success .errorPopupInnerContainer {
  background-color: #21c0ab80 !important;
}

.alert-warning .errorPopupInnerContainer {
  background-color: #de5d2380 !important;
}

.alert-info .errorPopupIconContainer {
  background-color: #005f70 !important;
}

.alert-success .errorPopupIconContainer {
  background-color: #21c0ab !important;
}

.alert-warning .errorPopupIconContainer {
  background-color: #de5d23 !important;
}

#kc-page-title {
  display: none;
}

#kc-info {
  margin-top: 35px;
}

/* Standardized inline error message styling for all fields */
[id^="input-error-"],
.inputErrorMessage,
.kcInputErrorMessageClass {
  display: inline-block;
  font-size: 14px;
  color: #ff6e2d;
  margin-top: 6px;
}

/* reCaptcha inline error */
.recaptcha-error {
  display: block;
  font-size: 14px;
  color: #ff6e2d;
  margin-top: 8px;
  text-align: center;
}

#kc-content {
  margin-top: 45px;
}

#kc-info-wrapper {
  color: #ffffff;
}

body:has(#kc-register-form) .mainTopContainerRight {
  display: none;
}

.mainTopContainerSignupSidePart {
  display: none;
  background-color: #011f2a;
}

body:has(#kc-register-form) .mainTopContainerSignupSidePart {
  display: block;
  width: 50%;
  min-height: 100vh;
  transition: all 0.5s ease-in-out;
  background-color: #001821 !important;
  background-image: url(../img/signupHero.webp);
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
}

body:has(#kc-register-form) .mainTopContainerLeft {
  width: 50%;
}

body:has(#kc-register-form) #kc-header-wrapper {
  display: none;
}

body:has(#kc-form-login) .mainTopContainerSignupSidePart {
  display: none;
}

body:has(#kc-register-form) .mainTopContainerLeft {
  padding-top: 50px;
  align-items: start;
  background-color: #011f2a;
}

.signupSideTCHeader {
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  vertical-align: bottom;
  margin-bottom: 35px;
}

.registerHeaderMainContainer {
  text-align: center;
  margin-bottom: 20px;
}

.registerHeaderMainContainer span {
  font-weight: 400;
  font-size: 24px;
  line-height: 100%;
}

.subtitle {
  text-align: center;
}

.subtitle span {
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  text-align: center;
  color: #018ea3;
}


.recaptchaContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.recaptchaBox {
  max-width: 85%;
  max-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  height: 80px;
}


.taCContainer {
  display: flex;
  align-items: center;
}

.taCContainer #termsAccepted {
  width: 15px;
  margin-right: 14px;
}

.taCContainer label {
  margin-bottom: 0px;
}

@media screen and (max-width: 1400px) {
  .mainTopContainerRight {
    width: 0%;
  }

  .mainTopContainerLeft {
    width: 100%;
  }

  body:has(#kc-register-form) #kc-header-wrapper {
    display: flex;
    margin-bottom: 30px;
  }

  body:has(#kc-register-form) .mainTopContainer {
    flex-direction: column-reverse;
    height: unset;
  }

  body:has(#kc-register-form) .mainTopContainerLeft {
    padding: 80px 0px 50px 0px;
    width: 100%;
  }

  body:has(#kc-register-form) .mainTopContainerSignupSidePart {
    width: 100%;
    min-height: unset;
    background-color: #011f2a !important;
  }



}

@media screen and (max-width: 360px) {
  .loginsignupBtnInnerBox {
    flex-direction: column;
  }

}


.checkbox-container {
  display: inline-block;
  cursor: pointer;
}

.checkbox-container input {
  display: none;
  /* Hide default checkbox */
}

.checkmark {
  width: 14px;
  height: 14px;
  border: 1px solid #057287;
  /* cyan border */
  border-radius: 4px;
  /* slightly rounded corners */
  display: inline-block;
  position: relative;
  margin-right: 6px;
}

/* When checked, show tick */
.checkbox-container input:checked+.checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.2px;
  width: 3.5px;
  height: 8px;
  border: solid #39e7e8;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#kc-totp-supported-apps {
  margin: 5px 0px 7px 15px;
}

#kc-totp-secret-qr-code {
  width: 160px;
  margin-top: 7px;
}

#mode-manual {
  display: inline-block;
  margin-bottom: 10px;
}

#kc-totp-settings {
  margin-bottom: 15px;
}

.textLinkContainer .checkbox {
  margin-top: 8px;
  margin-bottom: 15px;
}

.textLinkContainer .checkbox label {
  display: flex;
  align-items: center;
}

#kc-username {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

#kc-terms-text {
  color: #ffffff;
}

.termsAcceptanceContainer div {
  color: white;
}

.consent-section {
  margin-top: 22px;
}

.consent-section .termsAcceptanceContainer {
  background-color: #05728726;
  border: 1px solid #057287;
  border-radius: 6px;
  padding: 10px 10px;
  margin-bottom: 10px;
}

.consent-section .termsAcceptanceContainer:last-child {
  margin-bottom: 0;
}

/* Terms container error state when checkbox not checked after form submission attempt */
.consent-section .termsAcceptanceContainer:has(input:user-invalid) {
  border-color: #ff6e2d;
}

/* Fallback for browsers without :user-invalid */
@supports not selector(:user-invalid) {
  .consent-section .termsAcceptanceContainer:has(input:invalid) {
    border-color: #ff6e2d;
  }
}

.termsConditionOptionContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Password requirements text */
.password-requirements-text {
  font-size: 13px;
  color: #018ea3;
  margin-top: 8px;
  line-height: 1.4;
}

/* Input validation states - only show after user interaction */
input:user-valid:not(:placeholder-shown) {
  border-color: #21c0ab;
}

input:user-invalid:not(:placeholder-shown) {
  border-color: #ff6e2d;
}

/* For browsers that don't support :user-valid/:user-invalid */
@supports not selector(:user-valid) {
  input:valid:not(:placeholder-shown):not(:focus) {
    border-color: #21c0ab;
  }

  input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ff6e2d;
  }
}

/* Select validation states */
select:user-invalid {
  border-color: #ff6e2d;
}

select:user-valid:not([value=""]) {
  border-color: #21c0ab;
}

/* Select error message - hidden by default, shown after user interaction */
.select-error-message {
  display: none;
  font-size: 14px;
  color: #ff6e2d;
  margin-top: 6px;
}

/* Show error message when select is invalid after user interaction */
select:user-invalid+.select-error-message {
  display: block;
}

/* Fallback for browsers that don't support :user-invalid */
@supports not selector(:user-invalid) {
  select:invalid:not(:focus)+.select-error-message {
    display: block;
  }

  select:invalid:not(:focus) {
    border-color: #ff6e2d;
  }
}


/* Password inline error - hidden by default */
.password-error-inline {
  display: none;
  font-size: 14px;
  color: #ff6e2d;
  margin-top: 6px;
}

/* Show password error when input is invalid - using :has() on parent wrapper */
.inputContainers:has(#password:invalid:not(:placeholder-shown)) .password-error-inline {
  display: block;
}

/* Password inputs inside container should have no border - container handles border */
.passwordInputContainer input#password,
.passwordInputContainer input#password-confirm {
  border: none !important;
  outline: none !important;
}

/* Container border when input inside is valid/invalid - VALID first, then INVALID */
.passwordInputContainer:has(#password:valid:not(:placeholder-shown)),
.passwordInputContainer:has(#password-confirm:valid:not(:placeholder-shown)) {
  border-color: #21c0ab !important;
}

.passwordInputContainer:has(#password:invalid:not(:placeholder-shown)),
.passwordInputContainer:has(#password-confirm:invalid:not(:placeholder-shown)) {
  border-color: #ff6e2d !important;
}