html {
  min-height: 100%;
  overflow-x: hidden;
}

body#login {
  position: relative;
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 36px 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-x: hidden;
  background: #111315;
  color: #111827;
  font-family: "Segoe UI", Arial, Verdana, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

body#login:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 15, 18, 0.72), rgba(12, 15, 18, 0.28));
}

body#login > br {
  display: none;
}

.index-video-wrapper {
  position: fixed !important;
  inset: 0;
  z-index: -2;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden;
  background: url("../medias/fond_accueil.jpg") center center / cover no-repeat;
}

#index-video {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

#login center {
  display: block;
  margin: 0 0 18px;
}

#login center img {
  display: block;
  width: min(210px, 62vw) !important;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

#login .container {
  width: 100%;
  max-width: 420px;
  margin: 0 !important;
}

#login .form-signin {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

#login .form-signin hr {
  margin: 0 0 18px;
  border-top: 1px solid #e5e7eb;
}

#login .form-signin input[type="text"],
#login .form-signin input[type="password"],
#login .form-signin input[type="email"] {
  width: 100%;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
  box-shadow: none;
}

#login .form-signin input:focus {
  border-color: #168a78;
  box-shadow: 0 0 0 3px rgba(22, 138, 120, 0.16);
  outline: none;
}

#login .btn {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: none;
}

#login .btn-danger {
  border-color: #c93333;
  background: #dc3f3f;
}

#login .btn-success {
  border-color: #168a54;
  background: #168a54;
}

#login .alert {
  width: min(420px, calc(100vw - 32px));
  border-radius: 8px;
}

@media (max-width: 480px) {
  body#login {
    justify-content: flex-start;
    padding-top: 56px;
  }

  #login .form-signin {
    padding: 20px;
  }

  #login .btn {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    float: none !important;
  }
}
