@import url("./base.css");
@import url("./variables.css");

a,
a:focus,
a:hover {
  color: #707f95;
  text-decoration: none;
}

/* keycloak */
#kc-content-wrapper {
  text-align: center;
}

#kc-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.0625rem solid #d5d9e0;
  background-color: #fff;
  z-index: 1;
  padding: 30px 0;
}

#kc-header-wrapper {
  background-image: url(../img/logo.svg);
  background-repeat: no-repeat;
  height: 36px;
  width: 146px;
  text-align: center;
  color: transparent;
}

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

#kc-form-buttons {
  text-align: center;
  padding: 2rem 0;
}

#kc-page-title {
  margin-bottom: 32px;
}

h1#kc-page-title {
  color: var(--mdc-theme-text);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-align: center;
}

#kc-form-login,
#kc-passwd-update-form,
#kc-reset-password-form,
#kc-register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#kc-content {
  width: 100%;
}

#kc-form-options {
  display: flex;
  flex-direction: column;
}

.icon {
  display: block;
  margin-bottom: 1rem;
}

.form-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nowrap {
  white-space: nowrap;
}

.remember-me-checkbox {
  margin-left: -0.625rem;
}

.alert-success,
.instruction {
  margin-bottom: 2rem;
}

.alert-error {
  border-radius: 0.25rem;
  box-shadow: none;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0.01071em;
  background-color: rgb(253, 237, 237);
  display: flex;
  padding: 0.5rem 1rem;
  color: rgb(95, 33, 32);
  margin-bottom: 2rem;
}

.separator {
  border: none;
  border-top: 1px solid #f3f5f8;
  margin: 1rem 0 2rem 0;
}

.container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  justify-content: center;
  gap: 0.75rem;
  width: 24rem;
  align-items: center;
  flex: 1;
}

.main {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* register page */

.register #kc-header {
  display: none;
}

.register .logo {
  width: 146px;
  height: 36px;
  margin-bottom: 4rem;
  background-image: url(../img/logo.svg);
  background-repeat: no-repeat;
}

.register .container {
  width: auto;
  margin: 0;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.register #kc-content-wrapper {
  display: flex;
  flex-direction: row-reverse;
  height: 100%;
  overflow-x: auto;
}

.register #kc-page-title {
  margin-top: 0;
  color: var(--mdc-theme-primary);
}

.register #kc-form-buttons {
  padding: 0;
}

.register .left-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  max-width: 37.5rem;
  min-width: 25rem;
  padding: 2rem 4rem 1rem;
  background-color: #F3F5F8;
  color: var(--mdc-theme-primary);
  text-align: left;
}

.register .right-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 28rem;
  padding: 0 4rem;
  background: url(../icons/logo-bg.svg) no-repeat center;
  background-size: cover;
}

.register .benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register .benefit {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.register .benefit .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 1rem 0 0;
  border-radius: var(--mdc-shape-small);
  background-color: var(--mdc-theme-secondary);
}

.register .benefit svg {
  width: 1.875rem;
  height: 1.875rem;
}

.register .testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-radius: var(--mdc-shape-small);
  background-color: #FFF;
}

.register .testimonial-content {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.register .testimonial-content::after {
  content: "”";
}

.register .testimonial-content::before {
  position: absolute;
  top: 3.25rem;
  content: "“";
  color: #D5D9E0;
  font-size: 7.5rem;
}

.register .testimonial-person-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.register .testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2.5rem;
  background: #D5D9E0 url(../img/people/fiona.jpg) no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.register .testimonial-person {
  font-size: 0.75rem;
}

.register .testimonial-person div {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.register .partners-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 30rem;
  margin-top: 4rem;
  font-size: 1.125rem;
}

.register .partners {
  display: flex;
  flex-wrap: wrap;
}

.register .partners .icon {
  margin-right: 3rem;
  margin-bottom: 1rem;
}

.register .form-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 24rem;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #F3F5F8;
}

.register .mdc-text-field {
  border-radius: var(--mdc-shape-small, 4px);
  background-color: #FFF;
}

/* material-components-web */

.mdc-floating-label {
  overflow: visible;
}

.mdc-floating-label--required::after {
  content: "";
}

.mdc-text-field {
  width: 100%;
}

.mdc-text-field--outlined {
  height: var(--mdc-text-field-height, 56px);
}

.mdc-text-field--outlined.mdc-notched-outline--upgraded
  .mdc-floating-label--float-above,
.mdc-text-field--outlined
  .mdc-notched-outline--upgraded
  .mdc-floating-label--float-above {
  transform: translateY(-30.7504px) scale(0.75);
}

.mdc-text-field--focused:not(.mdc-text-field--disabled):not(
    .mdc-text-field--invalid
  )
  .mdc-floating-label {
  color: var(--mdc-theme-primary);
  font-weight: 600;
}

.mdc-button {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-radius: 6.25rem;
  padding: 0.8125rem 2.5rem;
}

.mdc-button--raised:hover,
.mdc-button--raised:focus,
.mdc-button--raised:not(:disabled):active {
  color: #1b3864;
  background-color: #fece53;
  box-shadow: none;
}

.mdc-button--outlined:hover,
.mdc-button--outlined:focus,
.mdc-button--outlined:not(:disabled):active {
  color: #fff;
  background-color: #1b3864;
}

.mdc-button--outlined {
  height: var(--mdc-protected-button-container-height, 36px);
}

.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
    .mdc-text-field--invalid
  ):not(.mdc-text-field--focused)
  .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
    .mdc-text-field--invalid
  ):not(.mdc-text-field--focused)
  .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
    .mdc-text-field--invalid
  ):not(.mdc-text-field--focused)
  .mdc-notched-outline__trailing {
  border-color: #d5d9e0;
}
