/* 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;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  background-color: #001821;
  color: #ffffff;
  display: block;
  width: 100%;
}




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;
  position: relative;
  align-items: center;
  background-color: #001821;
  border: 1px solid #057287;
    color: #ffffff;
  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: 10px;
}

.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;
  order: 1
}

.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.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left;
  transition: all 0.5s ease-in-out;
  order: 2
}

.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: #DE5D23;
  margin-top: 6px;
}

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

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

#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: 60%;
  min-height: 100vh;
  transition: all 0.5s ease-in-out;
  background-color: #001821 !important;
    color: #ffffff;
  position: relative;
  background-image: url(../img/heroImage.avif);
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  order:2
}

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

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 {
  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: #DE5D23;
}

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

.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;
}


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

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: #DE5D23;
  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: #DE5D23;
  }
}

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



.custom-google {
  background-image: url("../img/Google-logo-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.custom-microsoft {
  background-image: url("../img/Microsoft-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.socialProvidersList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}


.socialProvidersList li a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 40px;

    padding: 10px 30px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 999px;
    text-decoration: none;
}
.socialProviderName, .kc-social-icon-text {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: black;
}
.socialProviderBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 44px
  min-height: 36px;

  border-radius: 999px;
  text-decoration: none;
}

.socialProviderBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.socialProviderBtn i {
    position: static;
}

.socialProviderName,
.kc-social-icon-text {
    width: 100%;
    text-align: center;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #1f1f1f;
}


.social-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0;
}

.social-divider span {
    white-space: nowrap;
    color: #27E6F5;
    font-size: 18px;
    font-weight: 400;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background:  #005865;
}

.login-options-section{
      display: flex;
    justify-content: space-between;
}

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

.floating-input-wrapper input {
    width: 100%;
    height: 60px;
    padding: 20px 16px 8px;
    
    color: #fff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #001821 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}
.floating-input-wrapper label {
    position: absolute;
    left: 16px;
    top: 8px;
    color: #00bcd4;
    font-size: 13px;
    pointer-events: none;

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

.floating-select-wrapper select {
    width: 100%;
    height: 60px;
    background: #001821;
    color: #ffffff;
    border: 1px solid #00a3c7;
    border-radius: 6px;
    padding: 22px 40px 8px 16px;
    font-size: 16px;
    position: relative;
    line-height: 1.2;
}

.floating-select-wrapper select:focus {
    outline: none;
    border-color: #00bcd4;
}
.floating-select-wrapper select {
    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 16px center;
    background-size: 14px 9px;
}

.floating-select-label {
    position: absolute;
    left: 16px;
    top: 8px;
    color: #00bcd4;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.floating-select-wrapper select {
    -moz-appearance: none;
}


.floating-input-wrapper label {
    position: absolute;
    left: 16px;
    top: 8px;
    color: #00bcd4;
    font-size: 13px;
    pointer-events: none;
}


/* DEFAULT */
.inputContainers input,
.passwordInputContainer {
    border-color: #057287;
}


/* HOVER */
.inputContainers:has(input:not(:focus)):hover input,
.passwordInputContainer:has(input:not(:focus)):hover {
    border-color: #00bcd4;
}

/* FOCUS / ACTIVE */
.inputContainers:has(input:focus) input,
.passwordInputContainer:has(input:focus) {
    border-color: #ffffff;
}


.inputContainers:has(input:user-valid:not(:focus)) input,
.passwordInputContainer:has(input:user-valid:not(:focus)) {
    border-color: #21c0ab;
}

.inputContainers:has(input:user-invalid:not(:focus)) input,
.passwordInputContainer:has(input:user-invalid:not(:focus)) {
    border-color: #DE5D23;
}

.inputContainers:has(input:user-invalid:not(:focus)) .floating-input-wrapper label,
.passwordInputContainer:has(input:user-invalid:not(:focus)) .floating-input-wrapper label {
    color: #DE5D23 !important;
}

.passwordInputContainer.warning:not(:has(input:focus)) {
    border-color: #ff9f1c;
}
.passwordInputContainer.warning:not(:has(input:focus)) .floating-input-wrapper label {
    color: #ff9f1c !important;
}


@supports not selector(:user-valid) {
  input:valid:not(:placeholder-shown):not(:focus) {
    border-color: #21c0ab;
  }

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

body:has(#kc-register-form) .mainTopContainerSignupSidePart::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 220px;
    height: 60px;
    background: url("../img/dashtera-logo-white-text.svg") no-repeat center;
    background-size: contain;
    z-index: 10;
}

@media screen and (max-width: 1400px) {
    .mainTopContainerSignupSidePart::before {
        display: none;
    }
}



/* custom select */
.custom-select-trigger {
  width: 100%;
  height: 60px;
    background: #001821;
    color: #ffffff;
    border: 1px solid #00a3c7;
  border-radius: 4px;
  padding: 22px 40px 8px 16px;
  font-size: 16px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s;
  
}

.custom-select-trigger:hover {
  border-color: #00bcd4;
} 

.custom-select-trigger.open {
  border-color:  #ffffff;
  border-radius: 6px;
}

.custom-select-trigger.has-value {
  border-color: #21c0ab;
}

.custom-select-trigger.has-value:hover,
.custom-select-trigger.has-value.open {
  border-color: #00B5CF;
}

.custom-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s;
}

.custom-select-chevron.open {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: #001821;
  border: 1px solid #00B5CF;
  border-radius: 6px;
  z-index: 100;
  overflow-y: auto;
  max-height: 200px;
  scrollbar-width: thin;
  scrollbar-color: #005865 #011F2A;
   box-sizing: border-box;
  display: none;
}

.custom-select-dropdown.open {
  display: block;
}

.custom-select-option {
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  background: #011F2A;
  transition: background 0.1s;
}

.custom-select-option:hover {
  background: #005865;
}

.custom-select-option.selected {
  background: #005f70;
  color: #ffffff;
}

.custom-select-trigger:focus-visible {
    outline: none;
}

html {
  color-scheme: dark;
}