/* Common */
.main-input-wrapper {
  position: relative;
}

#password-verification-status,
.main-input-wrapper.form-group {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.main-input-wrapper::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  content: " ";
  display: block !important;
  border-bottom: 1px solid rgba(0, 0, 0, .48);
}

.main-input-wrapper:hover:before {
  border-bottom-width: 2px;
}

.main-input-wrapper:focus-within::before {
  border-bottom-width: 2px;
  border-bottom-color: #fe5000;
}

.main-input-wrapper .error-message {
  display: none;
  position: absolute;
  left: 0;
  bottom: -20px;
  font-size: 12px;
  color: #E40718;
}

.main-input-wrapper.invalid .error-message {
  display: inline-block;
}

.main-input-wrapper.invalid::before {
  border-bottom-color: #E40718;
}

.main-input-wrapper.invalid .main-label {
  color: #E40718;
}

.main-button {
  font-size: 16px;
  font-weight: 700;
  background-color: #fe5000;
  color: #FAFAFA;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
}

.main-button:hover {
  background-color: #b13800;
}

.main-button[disabled="true"] {
  color: rgba(0, 0, 0, 0.26);
  box-shadow: none;
  background-color: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.second-button {
  font-size: 16px;
  font-weight: 700;
  background-color: rgb(224, 224, 224);
  color: rgb(27, 49, 89);
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
  font-weight: 500;
}

.second-button > * {
  font-weight: 500;
}

.second-button:hover {
  background-color: rgb(245, 245, 245);
  text-decoration: none;
}

.second-button[disabled="true"] {
  color: rgba(27, 49, 89, 0.5);
  box-shadow: none;
  background-color: rgb(245, 245, 245);
  pointer-events: none;
}

.main-label,
.main-label * {
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
}

.main-label {
  margin: 0 0 7px 0;
  letter-spacing: 0.15px;
}

.main-input {
  padding: 5px 0;
  border: none;
  font-size: 16px;
  letter-spacing: 0.15px;
  line-height: 1.5;
  width: 100%;
  color: rgba(0, 0, 0, .87);
}

.main-input:focus-visible {
  outline: none;
}

.form-group {
  margin-bottom: 24px;
}

#kc-form-options {
  display: flex;
  justify-content: space-between;
}

#kc-form-options .checkbox {
  margin: 0;
}

/* Login */
#kc-form-options .checkbox-label {
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-horizontal .checkbox label,
#kc-form-options .checkbox-label .remember-me {
  font-size: 12px;
  padding-left: 0;
  color: #1B3159;
  font-weight: 400;
  letter-spacing: 0.15px;
  line-height: 20px;
}

.form-horizontal .checkbox label {
  padding-left: 20px;
}

#kc-form-options .checkbox-input {
  position: static;
  margin: 0;
  accent-color: #fe5000;
}

.form-horizontal input[type="checkbox"] {
  accent-color: #fe5000;
}

#kc-form-options a.forgot-password,
a.forgot-password {
  font-size: 12px;
  text-decoration: underline;
  color: #0288D1;
  font-weight: 400;
  letter-spacing: 0.15px;
}

#kc-form-buttons {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#kc-form-captcha {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-header,
.form-title {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 500;
  color: #1B3159;
  text-align: center;
}

/* .login-header {
  margin-bottom: 26px;
  color: #003399;
  letter-spacing: -0.2px;
  font-weight: 700;
} */

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.login-footer {
  opacity: 1;
  color: rgba(27, 49, 89, 1);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15px;
  line-height: 12px;
  margin: 0;
  text-align: center;
}

.login-footer strong {
  font-weight: 500;
  font-size: 12px;
}

/* Forgot Password */

#kc-reset-password-form .fp-form-wrapper {
  margin: 0;
}

#kc-reset-password-form .fp-label-wrapper {
  padding: 0;
}

.back-button {
  margin-top: 24px;
  margin-right: 14px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #1B3159;
  font-weight: 500;
}

/* Reset Password */

#kc-passwd-update-form .rp-input-wrapper {
  margin: 0;
}

#kc-passwd-update-form .rp-label-wrapper {
  padding: 0;
}

#kc-passwd-update-form .rp-input-wrapper.confirm-password {
  margin: 32px 0;
}

#kc-form-buttons.rp-form-button {
  margin: 0;
}

#input-error.login-err {
  display: inline-block;
}

.otp-config-list {
  padding-left: 18px;
  margin-bottom: 24px;
}

.otp-config-list,
.otp-config-list * {
  font-size: 12px;
  line-height: 1.5;
}

.otp-config-list > li {
  margin-bottom: 24px;
}

.otp-config-list img {
  margin-bottom: 8px;
}

.otp-config-list a {
  color: #0288D1;
}

.otp-session-checkbox input {
  position: relative;
  top: 2px;
}

#password-verification-status {
  display: flex;
  flex-direction: column;
}

.new-pass-input-wrapper {
  margin-bottom: 8px !important;
}

#password-verification-status .status-item {
  display: flex;
  align-items: center;
  font-size: 12px;
}

#password-verification-status .status-item svg {
  width: 24px;
  margin-right: 4px;
  fill: rgba(0, 0, 0, 0.26);
}

#password-verification-status.validating .status-item svg {
  fill: #FF9000 !important;
}

#password-verification-status .status-item.valid svg {
  fill: #00B74D;
}

#password-verification-status .status-item span {
  line-height: 20px;
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
}

.checkbox-label label {
  margin-bottom: 0 !important;
}

.otp-session-checkbox #kc-form-options.col-xs-12 {
  padding: 0 !important;
}

.otp-session-checkbox #kc-form-options.col-xs-12 .checkbox label {
  padding-left: 0 !important;
}

.otp-session-checkbox #kc-form-options.col-xs-12 .checkbox input {
  margin-right: 4px;
}