@import 'https://fonts.googleapis.com/css?family=Material+Icons';
@import 'https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600';

* {
  box-sizing: border-box;
}

html,
body {
  font-size: 16px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  margin: 0;
  padding: 0;
  background-color: #ffffff;

  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  font-weight: 400;

  color: #313338;

  display: flex;
  height: 100%;
  width: 100%;
}

a {
  text-decoration: none;
  color: #498EFD;
}

a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}

p {
  margin: 0;
  padding: 0;
}

/* Login Container */
.rea-login-container {
  min-height: 0;
  margin: 15px 20px;

  background-color: #32333A;
  border-radius: 16px;

  flex: 1 1 auto;
  position: relative;

  background-image: url('../img/brand-logo-single-bw.svg');
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: 100% 100%;
}

.rea-login-container__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  min-width: 500px;
  min-height: 100px;
  box-shadow: 5px 10px 90px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background-color: #ffffff;
  padding: 25px 20px;
}

#kc-header, .rea-header,
#kc-locale,
#kc-page-title,
.rea-login-header {
  display: none;
}

.rea-login-container__inner .rea-login-header {
  display: block;
}

#kc-content, .rea-modal { }

.rea-modal__header {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  gap: 0 5px;
  padding-left: 20px;
  flex-direction: column;
  gap: 20px 0;
}

.rea-modal__header__icon {
  width: 30px;
  height: 30px;
}

.rea-modal__header__logo-container {
  width: 192px;
}

.rea-modal__header__logo {
  filter: none;
}

.rea-modal__header__title {
  color: #32333a;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Button */
.rea-button {
  padding: 0 10px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: 0;
  outline: 0;
  min-width: 100px;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.rea-button__primary {
  background-color: #32333a;
  color: #ffffff;
}

.rea-button__secondary {
  background-color: #ffffff;
  color: #32333a;
  border: 1px solid #efefef;
}

.rea-ripple__primary {
  background-position: center;
  transition: background 1.0s;
}

.rea-ripple__primary:hover {
  background: #32333a radial-gradient(circle, transparent 1%, #32333a 1%) center/15000%;
}

.rea-ripple__primary:active {
  background-color: #47484D;
  background-size: 100%;
  transition: background 0s;
}

.rea-ripple__primary:focus {
  background-color: #47484D;
}

.rea-ripple__secondary {
  background-position: center;
  transition: background 1.0s, border-color .3s cubic-bezier(.25,.8,.25,1);
}

.rea-ripple__secondary:hover {
  background: #ffffff radial-gradient(circle, transparent 1%, #ffffff 1%) center/15000%;
}

.rea-ripple__secondary:active {
  background-color: #F9F9F9;
  background-size: 100%;
  transition: background 0s, border-color .3s cubic-bezier(.25,.8,.25,1);
}

.rea-ripple__secondary:focus {
  background-color: #F9F9F9;
  color: #c7102e;
  border-color: #c7102e;
}

/* Inputs; Floating Labels */
.rea-floating-label {
  position: absolute;
  top: 13px;
  left: 10px;
  font-size: 12px;
  user-select: none;
  z-index: 1500;
  color: #7c7e7f;
}

.rea-floating-label-field {
  color: #7C7E7F;
  height: 38px;
  z-index: 2000;
}

.rea-floating-label-field:focus,
.rea-floating-label-field:not(:placeholder-shown) {
  outline: 0;
  position: relative;
  padding-top: 16px;
  left: -2px;
  font-size: 13px;
}

.rea-floating-label-field::placeholder {
  color: #7C7E7F;
}

.rea-floating-label,
.rea-floating-label-field {
  line-height: 1;
  display: block;
  width: 100%;
  color: #32333A;
  background-color: transparent;
}

.rea-floating-label-field,
.rea-floating-label-wrap {
  position: relative;
}

.rea-floating-label-field {
  border: 0;
}

.rea-floating-label-wrap {
  background-color: #ffffff;
  border: 1px solid #EFEFEF;
  border-radius: 6px;
  transition: box-shadow 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 10px;
  margin: 15px 7px;
}

.rea-floating-label-wrap--has-error {
  margin-bottom: 25px;
  border-color: #b82b35;
}

.rea-floating-label-wrap--has-error .rea-floating-label {
  color: #b82b35 !important;
}

.rea-floating-label-wrap:focus-within {
  box-shadow: 0px 3px 10px #0000000d;
}

.rea-floating-label-field--primary {
  color: #32333A;
  border-bottom: 3px solid rgba(255, 255, 255, .05);
  background-color: transparent;
}

.rea-floating-label-field--primary + .rea-floating-label {
  transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: 0 0;
}

.rea-floating-label-field--primary:focus + .rea-floating-label,
.rea-floating-label-field--primary:not(:placeholder-shown) + .rea-floating-label {
  transform: translate(-0, -60%) scale(0.8);
  color: #498efd;
}

.rea-floating-label-field--primary + .rea-floating-label {
  z-index: 1500;
}

.rea-floating-label-field--primary:not(:focus)::placeholder {
  color: transparent;
}

.rea-floating-label-error {
  position: absolute;
  top: 43px;
  color: #b82b35;
  font-size: 75%;
}

.rea-floating-label-icon-button {
  width: 28px;
  height: 28px;
  position: absolute;
  right: 10px;
  top: 5px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  z-index: 2001;
  border-radius: 6px;
  transition: background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rea-floating-label-icon-button:hover {
  background-color: #EFEFEF;
}

.rea-floating-label-icon-button__icon {
  display: none;
  width: 20px;
  height: 20px;
}

.rea-floating-label-icon-button__icon--is-visible {
  display: block;
}

/* Form */
.rea-form-group { }

.rea-form-options-wrapper {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.rea-form-buttons {
  padding: 20px 1px 0;
  display: flex;
  justify-content: space-between;
}

/* CARD */
.rea-card {
  border-radius: 6px;
  border: 2px dashed #efefef;
  background-color: #f5f6f6;
  padding: 9px;
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.rea-card.rea-card--less-padding {
  padding: 15px;
}

.rea-card.rea-card--with-icon {
  display: flex;
  gap: 0 15px;
  align-items: center;
}

.rea-card__icon-box {
  border-radius: 6px;
  background-color: #ffffff;
  padding: 5px;
}

.rea-card__icon-box--flex-start {
  align-self: self-start;
}

.rea-card__icon {
  width: 30px;
  height: 30px;
}

.rea-card__icon--yellow {
  fill: #f4a72d;
}

.rea-card + .rea-card {
  margin-top: 5px;
}

.text--lighter {
  color: #7c7e7f;
}

/* INFOBAR/ ALERT */
.rea-infobar {
  display: flex;
  align-items: center;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 8px 8px 20px;
  font-size: 12px;
  min-height: 40px;
}

.rea-infobar + * {
  margin-top: 20px;
}

.rea-infobar .rea-infobar__text {
  flex: 1 1 auto;
}

.alert-warning, .rea-infobar--incomplete {
    background-color: #498efd;
  }

.alert-success, .rea-infobar--success {
  background-color: #6ecc79;
}

.alert-error, .rea-infobar--error {
  background-color: #b82b35;
  padding: 4px 4px 4px 20px;
}

/* Error View */
#kc-error-message {
  position: relative;
  min-height: 75px;
}

#kc-error-message .instruction {
  display: flex;
  align-items: center;
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  min-height: 40px;

  background-color: #b82b35;
  padding: 4px 4px 4px 20px;
}

#kc-error-message #backToApplication {
  position: absolute;
  padding: 10px 0;
  display: flex;
  align-items: center;
  padding-right: 8px;
  top: 50px;
}

/* Login Expired (Custom) View */
#instruction1 {
  border-radius: 6px;
  border: 2px dashed #efefef;
  background-color: #f5f6f6;
  padding: 9px;
  line-height: 3;
}

/* List */
ol#kc-totp-settings {
  list-style: none;
  counter-reset: rea-counter;
  padding-left: 26px;
}
ol#kc-totp-settings li {
  counter-increment: rea-counter;
  position: relative;
  margin-bottom: 25px;
}
ol#kc-totp-settings li:before {
  content: counter(rea-counter) ". ";
  color: #313338;
  font-weight: 600;
  position: absolute;
  top: 0px;
  left: -15px;
}

ol#kc-totp-settings li ul#kc-totp-supported-apps li {
  margin-bottom: 0px;
}

ul#kc-totp-supported-apps {
  list-style: none;
  counter-reset: rea-counter;
  margin: 0;
  padding: 0;
}

ul#kc-totp-supported-apps li {
  display: inline;
  color: #498efd;
  font-size: 10px;
  line-height: 35px;
}

ul#kc-totp-supported-apps li:not(:last-child) {
  margin-right: 20px;
}

ul#kc-totp-supported-apps li:before {
  content: "";
}

.rea-otp-qrcode__container {
  display: flex;
  justify-content: space-between;
  padding-right: 8px;
}

.rea-otp-qrcode__container #kc-totp-secret-qr-code {
  width: 120px;
  height: 120px;
  box-shadow: 5px 10px 90px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.rea-otp-qrcode__container a,
.rea-otp-qrcode__container--manual a {
  padding: 10px 0;
  font-size: 10px;
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.rea-otp-qrcode__container--manual { }

.rea-otp-qrcode__container--manual #kc-totp-secret-key {
  margin: 20px 0 10px;
  display: inline-block;
  background-color: #fff;
  padding: 10px;
  box-shadow: 5px 10px 90px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
}

.rea-otp-list--manual {
  list-style: none;
  counter-reset: rea-counter;
  margin: 0;
  padding: 20px 0 0 20px;
}

.rea-otp-list--manual li {
  margin-bottom: 10px !important;
}

/* List */
.rea-list {
  margin-left: 0;
  padding-left: 12px;
}

#kc-username {
  display: none;
}

/* Info Messages */
#kc-info-message .instruction {
  border-radius: 6px;
  border: 2px dashed #efefef;
  background-color: #f5f6f6;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 10px 0;
}

#kc-info-message .instruction b:before {
  content: "-\00a0";
  display: inline-block;
}

#kc-info-message p a {
  margin-top: 10px;
  padding: 10px 0;
  display: flex;
  align-items: center;
}
