* {
  scrollbar-color: #9FA4AA transparent;
  scrollbar-width: thin;
}

html {
  font-size: 62.5%;
}

p, h1 {
  all: unset;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: inherit;
}

::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border: 3px solid transparent;
  border-radius: 16px;
  background-clip: content-box;
  height: 32px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--medium-gray);
  background-clip: content-box;
}

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif !important;
  height: 100%;
  width: 100%;
  display: flex;
  margin: 0;
  padding: 0;
}

body::before,
body::after {
  content: '';
}

body .skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body .background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--base-background);
  height: 100%;
  width: 100%;
  position: fixed;
}

.container {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

a {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  color: var(--secondary);
}

#kc-form-options {
  margin-top: 24px;
  margin-bottom: 24px;
}

#kc-error-message {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  color: var(--secondary);
}

.side-panel {
  background: var(--base-background-light);
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 732px;
  max-height: 1200px;
  min-width: 450px;
  min-height: 630px;
}

.panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}

.bottom-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
}

.header-logo {
  margin-top: 76px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.header-logo .logo {
  height: 64px;
  width: 260px;
  min-height: 64px;
  min-width: 260px;
}

.header-title {
  color: var(--title-text-color);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2rem;
  text-align: center;
}

.form-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  margin-top: 40px;
  width: 300px;
  align-items: center;
  flex-shrink: 0;
}

.form-panel .form-content-wrapper {
  overflow: auto;
  height: 100%;
  width: 100%;
}

.form-panel .form-content-wrapper #kc-passwd-update-form > div {
  margin-bottom: 16px;
}

.form-panel .form-content-wrapper #kc-totp-settings #kc-totp-supported-apps {
  font-size: 1.2rem;
}

.form-panel .form-content-wrapper #kc-totp-settings p {
  font-size: 1.4rem;
  margin-block-start: 8px;
  margin-block-end: 8px;
}

.instruction {
  color: var(--secondary);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  font-family: 'Inter', sans-serif;
}

.instruction a {
  color: var(--theme-color);
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  text-decoration-line: underline;
}

#kc-form-login > div {
  margin-bottom: 16px;
}

.form-control {
  position: relative;
  margin-bottom: 24px;
}

.form-actions, #kc-form-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

#kc-form-options {
  margin-top: 0;
}

.alert-container {
  display: block;
  padding-bottom: 24px;
}

.alert-container .alert {
  display: flex;
  padding: 8px;
  border-radius: 3px;
  border: 1px solid var(--info-dark);
  width: auto;
  box-sizing: border-box;
  align-items: center;
  color: var(--info-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4rem
}

.alert-container .alert:before {
  padding-right: 8px;
  height: 14px;
  width: 14px;
}

.alert-container .alert.alert-success {
  border-color: var(--success-dark);
  color: var(--success-dark);
}

.alert-container .alert.alert-success:before {
  content: url(../img/success.svg);
}

.alert-container .alert.alert-warning {
  border-color: var(--warning-dark);
  color: var(--warning-dark);
}

.alert-container .alert.alert-warning:before {
  content: url(../img/warning.svg);
}

.alert-container .alert.alert-error {
  border-color: var(--error-dark);
  color: var(--error-dark);
}

.alert-container .alert.alert-error:before {
  content: url(../img/error.svg);
}

.alert-container .alert.alert-info {
  border-color: var(--info-dark);
  color: var(--info-dark);
}

.alert-container .alert.alert-info:before {
  content: url(../img/info.svg);
}

.kc-form-buttons input,
#kc-form-buttons input,
.kc-form-buttons button,
#kc-register-form button,
#kc-totp-settings-form #saveTOTPBtn {
  color: var(--white);
  background-color: var(--theme-color);
  border: none;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 1.4rem;
  line-height: 2rem;
  cursor: pointer;
  flex-grow: 1;
}

.kc-form-buttons input:focus-visible,
#kc-form-buttons input:focus-visible,
.kc-form-buttons button:focus-visible,
#kc-register-form button:focus-visible,
#kc-totp-settings-form #saveTOTPBtn:focus-visible {
  box-shadow: inset 0 0 0 2px var(--white);
  outline: 1px solid var(--focus-bg);
  outline-offset: -1px;
}

.kc-form-buttons input:hover,
#kc-form-buttons input:hover,
.kc-form-buttons button:hover,
#kc-register-form button:hover,
#kc-totp-settings-form #saveTOTPBtn:hover {
  filter: brightness(120%);
}

#kc-form-buttons,
.kc-form-buttons,
#kc-register-form {
  width: 100%;
  display: inline-flex;
}

#kc-form-buttons .secondary,
.kc-form-buttons .secondary,
#kc-register-form .secondary {
  border: 1px solid var(--secondary);
  background: var(--base-background-light);
  color: var(--secondary);
}

#kc-form-buttons .secondary:focus-visible,
.kc-form-buttons .secondary:focus-visible,
#kc-register-form .secondary:focus-visible {
  outline: 1px solid var(--white) !important;
  border: 1px solid var(--secondary) !important;
}

#kc-form-buttons .secondary:hover,
.kc-form-buttons .secondary:hover,
#kc-register-form .secondary:hover {
  filter: brightness(80%);
}

input[readonly]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

label {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
}

label[for] {
  color: var(--placeholder-text);
}

input {
  font-family: 'Inter', sans-serif;
  color: var(--secondary);
  font-size: 1.2rem;
  font-style: normal;
  line-height: 2rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type=""] {
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--input-border-color);
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
  background-color: var(--base-background-light) !important;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible,
input[type=""]:focus-visible {
  border: 1px solid var(--input-border-color);
}

input[type="text"] + button,
input[type="email"] + button,
input[type="password"] + button,
input[type=""] + button {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--base-background-light) inset !important;
  box-shadow: 0 0 0 1000px var(--base-background-light) inset !important;
  -webkit-text-fill-color: var(--base-text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-field-error {
  border: 1px solid var(--error-dark) !important;
}

.attempted-username {
  margin-bottom: 16px;
}

.attempted-username input {
  border: none;
  cursor: initial;
  padding: 8px 0;
  width: 100%;
  font-weight: 600;
  background: transparent !important;
}

input[type="checkbox"] {
  border-color: var(--secondary);
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  -webkit-appearance: none;
  position: relative;
  margin: 0 8px 0 0;
}

input[type="checkbox"]::before {
  content: url(../img/check.svg);
  width: 16px;
  height: 16px;
  position: absolute;
}

input[type="checkbox"]:checked {
  background-color: var(--secondary);
}

input[type="checkbox"]:focus-visible {
  border-color: var(--focus-bg);
  box-shadow: inset 0 0 0 1px var(--white), inset 0 0 0 2px var(--focus-bg);
  outline: none;
}

input[type="checkbox"]:checked:focus-visible {
  box-shadow: inset 0 0 0 1px var(--white);
  outline: none;
}

.input-error {
  color: var(--error-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4rem;
  position: absolute;
}

.footer {
  margin-top: 116px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-shrink: 0;
  width: 300px;
}

.footer .locale-selector {
  margin-left: auto;
}

.branding {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 2rem;
  color: var(--placeholder-text);
  margin-top: auto;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.restart-login {
  display: flex;
  align-items: center;
  color: var(--placeholder-text);
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  text-decoration: none;
  flex-basis: 100%;
}

.restart-login::before {
  height: 18px;
  width: 18px;
  margin-right: 4px;
  content: '';
  mask: url(../img/chevron_left.svg) no-repeat 50% 50%;
  mask-size: cover;
  background-color: var(--placeholder-text);
}

.restart-login:hover {
  color: var(--secondary);
}

.restart-login:hover::before {
  background-color: var(--secondary);
}

.restart-login:focus-visible {
  outline: 1px solid var(--focus-bg);
}

.forgot-password a, #kc-form-options a, .restart-login {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
  text-decoration-line: underline;
  cursor: pointer;
  color: var(--placeholder-text);
}

.forgot-password a {
  text-align: end;
}

.forgot-password a:hover, #kc-form-options a:hover, .restart-login:hover {
  color: var(--secondary);
}

.forgot-password a:focus-visible, #kc-form-options a:focus-visible, .restart-login:focus-visible {
  outline: 1px solid var(--focus-bg);
  outline-offset: -1px;
}

.social-providers,
#kc-social-providers {
  margin-top: 24px;
  color: var(--placeholder-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-providers .label,
#kc-social-providers .label {
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2rem;
}

.social-providers .social-list,
#kc-social-providers .social-list {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.social-providers .social-list li,
#kc-social-providers .social-list li {
  list-style: none;
}

.social-providers .social-list li a,
#kc-social-providers .social-list li a {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4rem;
  color: var(--placeholder-text);
}

.social-providers .social-list a:hover,
#kc-social-providers .social-list a:hover {
  color: var(--secondary);
}

.social-providers .social-list a:focus-visible,
#kc-social-providers .social-list a:focus-visible {
  outline: 1px solid var(--focus-bg);
}

.form-actions .checkbox {
  flex-shrink: 0;
}

.toggle-password-icon {
  cursor: pointer;
  position: absolute;
  right: 2px;
  top: 2px;
  user-select: none;
  padding: 8px;
}

.toggle-password-icon:focus-visible {
  outline: 1px solid var(--focus-bg);
  outline-offset: -1px;
}

.eye-icon-show {
  content: url(../img/show.svg);
}

.eye-icon-hide {
  content: url(../img/eye_closed.svg);
}
/* > 1080p */
@media (min-height: 911px) and (min-width: 1921px) {
  .side-panel {
    width: min(20vw, 732px);
    height: min(65vh, 1200px);
  }

  .form-panel {
    width: 62%;
    max-width: 450px;
    margin-top: min(2.7vh, 54px);
  }

  .form-control {
    margin-bottom: min(1.6vh, 32px);
  }

  .form-actions, #kc-form-options {
    margin-bottom: min(1.6vh, 32px);
  }

  .social-providers {
    margin-bottom: min(1.6vh, 32px);
  }

  .attempted-username {
    margin-bottom: min(1.5vh, 24px);
  }

  .header-logo {
    margin-top: min(8vh, 160px);
    margin-bottom: min(2.4vh, 48px);
  }

  .header-logo .logo {
    height: min(4.7vh, 94px);
    width: min(7.6vw, 291px);
  }

  .footer {
    width: 62%;
    max-width: 450px;
    margin-top: min(10.5vh, 230px);
  }

  .branding {
    margin-bottom: min(4vh, 92px);
  }
}

@media (max-width: 767px) {
  body {
    gap: 0;
  }

  .marketing-panel {
    display: none !important;
  }
}

/* Vertical mobile, tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    gap: 0;
  }

  .marketing-panel {
    display: none !important;
  }
}

/* Vertical mobile */
@media (min-width: 380px) and (max-width: 500px) {
  body {
    gap: 0;
  }

  .side-panel {
    width: 343px;
    min-width: 343px;

    height: 676px;
    min-height: 676px;
  }

  .marketing-panel {
    display: none !important;
  }
}

/* Vertical small mobile / fold */
@media (max-width: 379px) {
  body {
    gap: 0;
  }

  .side-panel {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .marketing-panel {
    display: none !important;
  }
}

/* Horizontal small tablet or laptop */
@media (max-height: 768px) and (min-width: 1366px) {
  body {
    gap: 0;
  }

  .form-panel {
    width: 62%;
    max-width: 450px;
    margin-top: min(2.7vh, 54px);
  }

  .form-control {
    margin-bottom: min(1.6vh, 32px);
  }

  .form-actions, #kc-form-options {
    margin-bottom: min(1.6vh, 32px);
  }

  .social-providers {
    margin-bottom: min(1.6vh, 32px);
  }

  .attempted-username {
    margin-bottom: min(1.5vh, 24px);
  }

  .header-logo {
    margin-top: min(8vh, 160px);
    margin-bottom: min(2.4vh, 48px);
  }

  .header-logo .logo {
    height: min(4.7vh, 94px);
    width: min(7.6vw, 291px);
  }

  .footer {
    width: 62%;
    max-width: 450px;
    margin-top: min(11.5vh, 230px);
  }

  .branding {
    margin-bottom: min(4vh, 92px);
  }

  .side-panel {
    width: min(20vw, 732px);
    height: min(61vh, 1200px);
    min-height: 530px;
  }
}

/* Horizontal mobile */
@media (max-height: 550px) and (min-width: 600px) and (max-width: 950px) {
  body {
    gap: 0;
  }

  .attempted-username {
    margin-bottom: 12px;
  }

  .header-logo {
    width: 50vw;
  }

  .header-logo .logo {
    height: 97px;
    width: 300px;
  }

  .side-panel {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;

    flex-direction: row;
    align-items: stretch;
  }

  .panel-content {
    width: 50vw;
    margin-top: 36px;
  }

  .form-panel {
    width: 50vw;
    max-width: 300px;
    margin-top: 24px;
  }

  .bottom-content {
    position: absolute;
    width: calc(50vw - 32px);
    height: 50vh;
    bottom: 0;
    left: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer {
    margin-top: 100px;
  }
}

/* Ipad dialogs */
@media (min-height: 500px) and (max-height: 600px) and (min-width: 500px) and (max-width: 600px) {
  body {
    gap: 0;
  }

  .side-panel {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .marketing-panel {
    display: none !important;
  }
}
