:root[data-theme="theme-cinp"] {
  --primary: #1a1258;
  --primary-dark: #130b4a;
  --danger: #d0301d;
  --bg-body: #ffffff;
  --bg-footer: #ffffff;
  --ft-body: #343640;
  --ft-light: #687175;
  --ft-primary: #1a1258;
  --ft-white: #ffffff;
  --text-title: "Segoe UI", Arial, sans-serif;
  --text-editorial: "Segoe UI", Arial, sans-serif;
  --form-border-color: #d0dee2;
  --form-input-color: #343640;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  background-color: var(--bg-body);
  color: var(--ft-body);
  font-family: var(--text-editorial);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ft-primary);
  text-decoration: underline;
}

/* Language selector */
.lang-select-wrapper {
  z-index: 9999;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 150px;
}

.lang-select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 32px;
  border: 1px solid var(--form-border-color);
  border-radius: 2px;
  background: #fff url("../assets/img/fr.svg") no-repeat 10px center / 15px 10px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23343640' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-family: var(--text-editorial);
  font-size: 0.846rem;
  color: var(--ft-body);
  appearance: none;
  cursor: pointer;
}

/* Main layout */
#page-login {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 0;
  justify-content: space-between;
}

#page-login .col-login-left {
  flex: 1;
  background: var(--primary) url("../assets/img/bg-login.jpg") no-repeat center center;
  background-size: cover;
}

#page-login .col-login-left .cll-inside {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

#page-login .col-login-right {
  flex: 0 0 500px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 15px -11px rgba(0, 0, 0, 0.24);
}

#page-login .col-login-right .clr-inside {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 0 10%;
}

/* Login block */
.block-login {
  padding: 20px 50px;
  width: 100%;
  position: relative;
}

.block-login .logo {
  text-align: center;
  margin-bottom: 12px;
}

.block-login h2 {
  font-family: var(--text-title);
  font-size: 19px;
  color: var(--primary);
  text-align: center;
  padding: 0;
  margin: 0 0 35px;
  font-weight: 600;
}

.block-login-sms .bls-title {
  background: url("../assets/img/smartphone.svg") no-repeat 0 0;
  margin: 0 0 27px;
  background-size: 32px 60px;
  padding: 0 0 0 46px;
}

.block-login-sms .bls-title p {
  color: var(--ft-light);
  margin: 0;
  font-size: 0.923rem;
  line-height: 1.4;
}

.form-group {
  position: relative;
  margin: 0 0 30px;
}

.form-group label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.923rem;
  color: var(--ft-body);
}

.form-group label .required {
  color: var(--danger);
  font-style: normal;
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.input-group-prepend {
  display: flex;
}

.selectpicker-container {
  position: relative;
  display: flex;
  align-items: center;
}

.selectpicker-container::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 15px;
  height: 10px;
  background: url("../assets/img/fr.svg") no-repeat center / contain;
  pointer-events: none;
  z-index: 1;
}

.country-select {
  height: 38px;
  padding: 0 28px 0 32px;
  border: 1px solid var(--form-border-color);
  border-right: none;
  border-radius: 2px 0 0 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23343640' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-family: var(--text-editorial);
  font-size: 0.846rem;
  color: var(--form-input-color);
  appearance: none;
  cursor: pointer;
  min-width: 165px;
}

.form-control {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--form-border-color);
  border-radius: 0 2px 2px 0;
  font-family: var(--text-editorial);
  font-size: 0.923rem;
  color: var(--form-input-color);
  background: #fff;
  outline: none;
}

.form-control::placeholder {
  color: #aab0b8;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.btn {
  display: inline-block;
  padding: 8px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--text-editorial);
  font-size: 0.923rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn-primary {
  width: 100%;
  background-color: var(--primary);
  color: var(--ft-white) !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-center {
  text-align: center;
}

.error-message {
  color: var(--danger);
  font-size: 0.846rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Footer */
#ft {
  padding: 10px 0;
  width: 100%;
  font-size: 0.846rem;
  min-height: 26px;
  background-color: var(--bg-footer);
  flex-shrink: 0;
}

#ft .container-fluid {
  width: 100%;
  padding: 0 15px;
}

#ft .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#ft .col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

#ft p {
  margin: 0;
}

#ft .p-copyright a {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 22px;
  background: url("../assets/img/logo-symbole-notantis.svg") no-repeat 0 center;
  background-size: 15px 20px;
  color: var(--ft-body);
  text-decoration: none;
}

#ft .p-copyright a:hover {
  color: var(--ft-primary);
  text-decoration: underline;
}

#ft .align-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#ft .align-right a {
  margin: 0 5px;
  color: var(--ft-body);
  text-decoration: none;
}

#ft .align-right a:hover {
  color: var(--ft-primary);
  text-decoration: underline;
}

/* Responsive */
@media only screen and (max-width: 767.98px) {
  #page-login {
    display: block;
  }

  #page-login .col-login-left {
    display: none;
  }

  #page-login .col-login-right {
    flex: none;
    display: block;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 46px);
    box-shadow: none;
  }

  #page-login .col-login-right .clr-inside {
    display: block;
    padding: 60px 15px 20px;
  }

  .block-login {
    padding: 20px 10px;
    max-width: none;
  }

  #ft .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  #ft .align-right {
    justify-content: center;
    margin-top: 6px;
  }
}
