/* CSS for LDAP Tool Box Self Service Password */

html,
body {
  background: #2c78c0;
  font-size: 16px;
  padding: 0;
  font-family: "Open Sans", sans-serif;

  color: #2c363f;
}

a {
  color: #2c78c0;
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

.title {
  font-size: 20px;
  color: #081d30;
  margin-bottom: 24px;
}

.change-pwd-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px;
  gap: 8px;
  background: #f2f5fb;
  border-radius: 8px;

  font-size: 14px;
}

.change-pwd-mode span {
  font-weight: 600;
}

.captcha {
  padding-top: 0 !important;
  margin-bottom: 5px !important;
  z-index: 100;
}

.container {
  display: flex;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  height: calc(100vh - 100px);
}

a,
a:hover {
  text-decoration: none;
}

.panel {
  background-color: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 2px 24px 32px rgba(8, 29, 48, 0.24);
  max-width: 600px;
  width: 100%;
}

.panel .panel-body {
  padding: 0;
}

#logo {
  background-color: #2c78c0;
}

.logo {
  display: block;
  margin-top: 24px;
  margin-left: 80px;
  width: 190px;
  height: auto;
}

.form-group {
  border: 1px solid #bac7d5;
  border-radius: 8px;
  padding: 8px;
  margin-top: 16px;
  position: relative;
}

.form-group:focus-within {
  border-color: #2c78c0;
  box-shadow: 2px 4px 8px rgba(44, 120, 192, 0.32);
}

.form-group label.control-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px !important;
}

.input-group {
  display: flex;
  flex-direction: row;
}

.input-group input {
  border: none;
  height: 20px;
  line-height: 1.5;
  margin-top: 4px;
  font-size: 15px;
  color: #2c363f;
  width: 100%;
  border-radius: 0;
}

.input-group input:focus {
  border: none;
  outline: 0;
}

.form-group .captcha {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.display img {
  margin-bottom: 0px;
}

.input-group-addon label {
  margin: 0;
  font-weight: normal;
}

.btn {
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  outline: 0;
  padding: 16px 24px;
  text-align: center;
}

.btn.btn-success {
  background: linear-gradient(94.89deg, #ffbd49 49.35%, #f3a51c 100%);
  color: #081d30;
  width: 100%;
}

.alert-info .btn-success {
  margin-top: 16px;
  width: 100%;
}

textarea#sshkey {
  font-family: monospace;
  word-break: break-all;
  resize: vertical;
  min-height: 10em;
}

.help {
  display: none;
  background: #edf5fd;
  border-radius: 8px;
  box-shadow: 2px 4px 8px rgba(8, 29, 48, 0.12);
  padding: 8px;
  border: 1px solid #bac7d5;
  position: absolute;
  right: -332px;
  top: 0;
  z-index: 10;
  font-size: 13px;
  line-height: 1.5;
  width: 300px;
}

.help::before,
.help::after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  position: absolute;
  border: 0;
}

.help::before {
  z-index: 10;
  border: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  top: 8px;
  border-right: 9px solid #bac7d5;
  left: -9px;
}

.help::after {
  z-index: 11;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  top: 9px;
  border-right: 8px solid #edf5fd;
  left: -8px;
}

.help ul {
  list-style: disc;
  list-style-position: inside;
  padding: 0;
}

.form-group:focus-within .help {
  display: block;
}

@media screen and (max-width: 1023px){
  .container {
    display: flex;
    padding: 24px;
  }
  
  .help {
    right: 0;
    top: 60px;
    width: 100%;
  }
  
  .help::before{
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 9px solid #BAC7D5;
    left: 23px;
    top: -14px;
  }

  .help::after{
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #EDF5FD;
    left: 24px;
    top: -12px;
  }
  
  .help::before, .help::after{
    transform: rotate(90deg);
  }
  
  .logo {
    margin-left: 24px;
  }
}

@media screen and (min-width: 1024px){
  .container {
    justify-content: center;
    align-content: stretch;
    align-items: center;
    height: calc(100vh - 100px) ;
  }
}
