/* This uses a custom bootstrap build, made with https://bootstrap.build/app */
/* The _variables.scss to import on this site is included inside /css */

@font-face {
  font-family: "FiraSans";
  src: url("../fonts/FiraSans-Regular.ttf") format("truetype");
  font-weight: normal;
  font-display: auto;
  font-style: normal;
}

@font-face {
  font-family: "FiraSans";
  src: url("../fonts/FiraSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: auto;
  font-style: normal;
}

@font-face {
  font-family: "FiraSans";
  src: url("../fonts/FiraSans-Bold.ttf") format("truetype");
  font-weight: bold;
  font-display: auto;
  font-style: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base */
html,
body {
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    background-image: url("../img/background.jpg");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@supports not (-ms-high-contrast: none) {
  select {
    -webkit-appearance: none; /* Webkit */
    -moz-appearance: none; /* FF */
    -ms-appearance: none; /* Edge */
    appearance: none; /* Future */
  
    padding-right: 2.5rem !important;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 0.75em;
    background-image: url("../img/arrow-down.svg");
  
  }
  select::-ms-expand {
    display: none;
  }  
}

/* Bootstrap */
.alert {
  font-weight: bold;
  display: flex;
  align-items: center;
  background-color: transparent;
  border-color: currentColor;
}

.alert-error {
  color: #d43f4f;
}

.alert-warning {
  color: #a81411;
}

.alert svg {
  width: 1.25rem;
  height: auto;
  margin-right: 0.75rem;
}

.btn {
  text-transform: uppercase;
}

.btn-lg {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-lg {
    max-width: 220px;
  }
}

.form-control {
  letter-spacing: 0.5px;
}

.tooltip-inner {
  font-weight: 500;
  text-align: left;
}

/* Keycloak */
@media (min-width: 768px) {
  #kc-register-form {
    max-height: 50vh;
    overflow-y: scroll;
    padding-right: 1rem;
    margin-right: -1rem;
  }
}

#kc-form-buttons {
  margin-top: 0.5rem;
  text-align: center;
}

#kc-info {
  margin-top: 2rem;
  text-align: center;
  color: #a3a5a5;
}

#kc-info-message {
  margin: 2rem 0;
  text-align: center;
  color: #a3a5a5;
}

#kc-error-message {
  margin: 2rem 0;
  text-align: center;
  color: #a3a5a5;
}

#kc-registration {
  margin-top: 1.5rem;
}

/* Custom */
.kp-form-wrapper {
  background-color: white;
  padding: 2rem;
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.3s 0.3s forwards ease;
}

@media (min-width: 768px) {
  .kp-form-wrapper {
    width: 500px;
    max-width: 100%;
    box-shadow: 0 20px 28px rgba(0, 0, 0, 0.1);
  }
}

.kp-form-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.kp-form-topbar-logo {
  width: 90px;
}

.kp-form-topbar-locale {
  list-style: none;
  padding-left: 0;
  display: flex;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1em;
}

.kp-form-topbar-locale li.active {
  font-weight: bold;
}

.kp-form-topbar-locale li:not(:last-of-type) {
  border-right: 1px solid #a3a5a5;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
}

.kp-form-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kp-form-header * {
  margin-bottom: 0;
}

.kp-form-header h1 {
  font-size: 1.75rem;
}

.kp-form-header svg {
  height: 30px;
  width: 30px;
  margin-right: 1rem;
}

.conditional {
  display: none;
}

.kp-login-hint {
  border: 2px solid #d43f4f;
  margin-bottom: 16px;
}

.kp-login-hint-wrapper {
  padding: 8px 12px;
}

.kp-login-hint-wrapper h2 {
  font-size: 1.3rem;
}

.kp-login-hint-wrapper p {
  margin-bottom: 0;
}
