@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;600;700&display=swap");

:root {
  --primary_0: #0d6efd;
  --primary_1: #5381f8;
  --primary_2: #7c9df2;
  --primary_3: #03014c;
  --primary_4: #040091;
  --primary_5: #abe1fa;

  --dark-purple: #5d41cd;
  --purple: #8a38fe;

  --bg-color: #fcfafe;

  --grey_1: #4a4a4a;
  --grey_2: #6f6f6f;
  --grey_3: #8f8f9a;
  --grey_4: #b0adc7;
  --grey_5: #d8dde6;
  --grey_6: #f4f8fb;

  --white: #fff;

  --error: #d0021b;
  --error_bg: #f9dbdf;

  --warn: #fc9d0a;
  --warn_bg: #fff3cd;

  --success: #32b88b;
  --sucess_bg: #cdded4;

  --font-xxs: 1rem;
  --font-xs: 1.2rem;
  --font-sm: 1.4rem;
  --font-md: 1.6rem;
  --font-lg: 1.8rem;
  --font-xl: 4rem;

  --font-primary: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100vh;
  font-family: var(--font-primary) !important;
}

html {
  font-size: 13px;
  font-family: var(--font-family-sans-serif);
}

body {
  background-color: var(--white);
  background-size: cover;
  background-attachment: scroll;
  background-clip: content-box;
  background-repeat: no-repeat;
  overflow: hidden;
  font-size: var(--font-md);

  border-radius: 3px;
}

.bg-grey-6 {
  background-color: var(--bg-grey-6);
}

.hide-text > h1#kc-page-title {
  display: none;
}

.bg-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 6rem;

  margin: 0 0 1rem 0;
}

.bg-image:after {
  content: "";
  height: auto;
  display: block;
  width: 20rem;
  height: 5rem;

  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("../images/sdp-full-logo-purple.svg");
}

.sdp-kc-box {
  width: 100vw;
  max-height: 100vh;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow-y: auto;
}
.sdp-kc-header-hidden {
  display: none;
}

.sdp-kc-card-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: columns;
  justify-content: center;
  align-items: center;
  /*background-color: var(--bg-color);*/
}

.sdp-side-card-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  min-width: 50vw;
  height: 100%;
  background-color: #fdfdfd;
}

.sdp-side-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50vw;
  height: 60%;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../images/dashboard.svg");
}

.sdp-side-card-image > h1 {
  display: none;
}

.sdp-kc-card {
  width: 40%;
  min-width: 320px;
  max-width: 400px;
  display: flex;
  flex-flow: column nowrap;
  border-radius: 10px;
  overflow: hidden;
}

.sdp-kc-input-group {
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-flow: column nowrap;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.sdp-kc-input-box {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;

  background-color: transparent;

  overflow: hidden;
}

.sdp-kc-input-group-label-user {
  display: flex;
  align-items: center;
  height: 100%;

  font-size: var(--font-xs);

  padding: 0.8rem 0 0.2rem 0;
}

.sdp-kc-input-group-label-password {
  display: flex;
  align-items: center;
  height: 100%;

  font-size: var(--font-xs);

  padding: 0.8rem 0 0.2rem 0;
}

.sdp-kc-input-group input[type="text"].sdp-kc-input,
.sdp-kc-input-group input[type="password"].sdp-kc-input {
  width: 100%;
  height: 100%;
  min-height: 60px;

  font-family: inherit;
  font-size: var(--font-xs);

  transition: all 0.2s ease;

  padding: 0 15px;

  background-color: transparent;
  border: 0.8px solid var(--grey_4);
  border-radius: 8px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 0px var(--bg-color) inset !important;
}

input:-internal-autofill-selected {
  background-color: transparent !important;
}

#kc-content-wrapper {
  display: flex;
  flex-direction: column;
}

#kc-form,
#kc-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.login-button {
  margin-top: 15%;
  margin-bottom: 0 !important;
  cursor: pointer !important;
}

.login-button .sdp-kc-button {
  cursor: pointer !important;
}

#kc-form-login .sdp-kc-input-group:nth-last-child(2),
#kc-register-form .sdp-kc-input-group:nth-last-child(1),
#kc-reset-password-form .sdp-kc-input-group:nth-last-child(1) {
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

.sdp-kc-error-message {
  font-size: var(--font-xxs);
  color: #eb4b3c;
  margin-top: 5px;
}

.sdp-login-options-wrapper span a {
  font-size: var(--font-xxs);
}

.login--back-to-login__button,
.login--reset-instructions,
.otp--back-to-login__button {
  font-size: var(--font-xxs);
}

.login--reset-instructions {
  color: var(--grey_2);
}

.alert-warning,
.alert-error {
  padding: 8px;
  margin-bottom: 8px;
  font-size: var(--font-xxs);
}

.sdp-kc-button {
  background-color: var(--purple);
  width: 100%;
  padding: 0.9rem 1.8rem;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  border-radius: 4px;
  font-family: var(--font-primary);
}
.sdp-kc-button:hover {
  background: var(--dark-purple);
}

.sdp-kc-button-submit-login input + button {
  margin: 0.5rem 0;
}

@media screen and (min-width: 320px) {
  body {
    font-size: var(--font-xs);
    font-family: var(--font-primary);
  }
  a {
    font-size: var(--font-sm);
    color: var(--primary_3);
    font-family: var(--font-primary);
    text-decoration: none;
    opacity: 0.5;
  }
  a:hover {
    color: var(--primary_4);
  }
  .bg-image:after {
    margin: 18px auto;
    min-width: 175px;
    min-height: 36px;
  }
  .sdp-kc-card {
    border-radius: 4px;
  }
  #kc-content {
    width: 65%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 2rem;
  }
  #kc-content-wrapper {
    width: calc(100% - 64px);
  }
  .sdp-kc-input-group {
    margin-bottom: 12px;
  }
  .sdp-kc-input-group:nth-last-child(3) {
    margin-bottom: 4px;
  }
  .sdp-kc-input-group label {
    margin-bottom: 1px;
    line-height: 2em;
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--grey_2);
    font-family: var(--font-primary);
  }
  .sdp-kc-input-group .sdp-kc-input {
    width: 100%;
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
    border: 1px solid var(--grey_3);
    font-family: var(--font-primary);
    background-color: transparent;
  }
  .sdp-kc-input-group .sdp-kc-input:focus {
    outline: none;
  }

  .sdp-kc-input-box:focus {
    outline: none;
  }
  .sdp-kc-input-group > #kc-form-options > .checkbox > label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 10rem;
    color: var(--purple);
  }
  .sdp-kc-input-group > #kc-form-options > .checkbox input[type="checkbox"] {
    position: relative;
    width: 1.2rem;
    height: 1.2rem;

    background-color: var(--grey_5);
    border: 1px solid var(--grey_4);
    border-radius: 4px;
    margin-right: 8px;

    appearance: none;
    overflow: hidden;
    cursor: pointer;
  }
  .sdp-kc-input-group
    > #kc-form-options
    > .checkbox
    input[type="checkbox"]:focus,
  .sdp-kc-input-group > #`-options > .checkbox input[type="checkbox"]:hover,
  .sdp-kc-input-group
    > #kc-form-options
    > .checkbox
    input[type="checkbox"]:active {
    border: none;
  }

  .sdp-kc-input-group
    > #kc-form-options
    > .checkbox
    input[type="checkbox"]:checked {
    background-color: var(--purple);
    background-size: calc(contain - 4px);
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../img/check-icon.svg");
    border: none;
  }

  .sdp-kc-card-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: auto;
    max-height: 94.5vh;
    min-width: 50vw;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .alert {
    position: relative;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
  }
  .alert .kc-feedback-text {
    font-size: var(--font-sm);
  }
  .alert-error {
    color: var(--error);
    background: var(--error_bg);
  }
  .alert-success {
    color: var(--success);
    background: var(--success_bg);
  }
  .alert-warning {
    color: var(--warn);
    background: var(--warn_bg);
  }
  #kc-registration {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--grey_2);
  }
  #kc-register-form .sdp-kc-input-group {
    margin-bottom: 14px;
  }
}
@media screen and (min-width: 576px) {
  a {
    font-size: var(--font-sm);
  }
  .bg-image:after {
    margin: 28px auto;
  }
  #kc-content-wrapper {
    width: calc(100% - 72px);
  }
  .sdp-kc-input-group .sdp-kc-input {
    padding: 0.5rem 1rem;
    color: var(--grey_3);
  }
  .sdp-kc-button {
    font-size: var(--font-sm);
    padding: 1rem 2rem;
  }
  .sdp-kc-input-group > #kc-form-options > .checkbox > label:active,
  .sdp-kc-input-group > #kc-form-options > .checkbox > label:hover {
    color: var(--purple);
    cursor: pointer;
  }
}
@media screen and (min-width: 768px) {
  a {
    font-size: var(--font-md);
  }
  #kc-content-wrapper {
    width: calc(100% - 64px);
  }
  .bg-image:after {
    margin: 48px auto;
  }
  .sdp-kc-input-group {
    margin-bottom: 1rem;
  }
  .sdp-kc-input-group:nth-last-child(3) {
    margin-bottom: 6px;
  }
  .sdp-kc-input-group label {
    font-size: var(--font-xxs);
  }
  .sdp-kc-input-group .sdp-kc-input {
    font-size: var(--font-xs);
  }
  .sdp-kc-input-group > #kc-form-options > .checkbox > label {
    min-width: 124px;
  }
  .sdp-kc-button {
    padding: 1rem 2rem;
    font-size: var(--font-lg);
    font-size: var(--font-sm);
  }

  #kc-registration .sdp-kc-input-group {
    margin-bottom: 1rem !important;
  }
  #kc-register-form .sdp-kc-input-group {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 900px) {
  .sdp-side-card-box {
    display: none;
  }
  .sdp-side-card-image {
    display: none;
  }

  .sdp-kc-card-container {
    min-width: 85vw;
  }
}

@media screen and (max-width: 600px) {
  .sdp-kc-card-container {
    min-width: 100vw;
  }

  #kc-content {
    width: 90%;
  }
}

@media screen and (max-width: 320px) {
  #kc-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 2rem;
  }
}

.source_img {
  text-align: right;
}

.source_img a {
  font-size: 0.6em;
}

.status {
  color: red;
  font-weight: bold;
  text-align: center;
}