* { box-sizing: border-box; }

body {
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin: 0;
  background: rgb(102,176,255);
  background: linear-gradient(120deg, rgba(102,176,255,1) 0%, rgba(84,10,93,1) 100%, rgba(0,212,255,1) 100%);
  background-attachment: fixed;
}

#logo {
  width: 50px;
  height: 50px;
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
}

#pannel-container {
  padding: 25px;
  background-color: white;
  position: fixed;
  left: 50%;
  top: calc( 45% + 25px );
  width: 400px;
  font-size: 14px;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  min-width: 20%;
  filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}
@media (max-height: 590px) { /* Small screen. Reduce! */
  #pannel-container {
    padding: 1px 25px 20px 25px;
    top: 50%;
  }
  #pannel-container::before {
    top: -29px;
  }
  #pannel-container #kc-content {
    width: 220px;
  }
  #pannel-container .labeled-text-field {
    margin: 5px 0;
  }
  #pannel-container .labeled-text-field input {
    padding: 5px 15px;
    border-radius: 8px;
  }
  #pannel-container #kc-social-providers {
    position: absolute;
    top: 55px;
    left: 260px;
    width: 130px;
    height: calc(100% - 70px);
    border-left: 2px dotted #DDD;
  }
  #pannel-container #kc-social-providers h4 {
    margin: 0 0 0 15px;
    font-size: 10px;
  }
  #pannel-container #social-providers > a {
    margin: .5em 1em;
  }
  #pannel-container .icon-provider {
    width: 2em;
    height: 2em;
  }
  footer#main-footer {
    font-size: 11px;
  }
}

#pannel-container::before {
  content: "";
  display: block;
  position: absolute;
  top: -35px;
  left: -35px;
  width: 80px;
  height: 80px;
  background: #FFF no-repeat 50% 50% url(../svg/ntopus.svg);
  background-size: 60px;
  border-radius: 50%;
  z-index: -1;
}

#pannel-header h1 {
  text-align: center;
  color: #84C;
  font-size: 26px;
  margin: 10px 0;
}

#pannel-header p {
  max-width: 30em;
}

.labeled-text-field {
  margin: 10px 0;
}

.labeled-text-field label {
  display: inline-block;
  margin-left: 12px;
  font-size: x-small;
  transition: .5s;
}

.animated {
  transition: opacity 0.3s ease, transform 0.4s;
}

.label-hidden {
  opacity: 0;
  transform: translate(0, 50%);
}

.label-show {
  opacity: 1;
  transform: translate(0, -25%);
}

.labeled-text-field input {
  padding: 15px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 15px;
  width: 100%;
}

.labeled-text-field input:focus {
  border-color: transparent;
  outline: 3px solid #84C;
}

#kc-form-options {
  margin: 15px 0 0 15px;
}
#kc-form-options a {
  color: #89B;
  transition: 1s;
}
#kc-form-options a:hover {
  color: #04C;
  transition: .2s;
}

#kc-form-buttons {
  position: relative;
  margin-top: 10px;
  border: 3px solid #84C;
  border-radius: 22px;
  transition: 0.4s;
}
#kc-form-buttons:hover {
  border-color: #59D;
}

#remember-me {
  position: absolute;
  top: -34px;
  right: -3px;
  display: inline-block;
  background: #84C;
  color: #FFF;
  padding: 7px 20px 30px 7px;
  border-radius: 10px;
  transition: 0.4s;
  outline: none;
}
#kc-form-buttons:hover #remember-me {
  background: #59D;
}

button[type="submit"] {
  position: relative;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: 1.25px;
  font-weight: 500;
  width: 100%;
  background-color: white;
  border: 1px solid #FFF;
  color: #629;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 20px;
  outline-color: #84C;
}

button[type="submit"].animated {
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

#kc-form-buttons:hover button[type="submit"] {
  transition: background-color;
  transition-duration: 0.4s;
  background-color: #84C;
  color: white;
}

button[type="submit"]:active {
  transition: background-color;
  transition-duration: 0.1s;
  background-color: #629;
  border: 2px solid #629;
}

button[type="submit"]:focus-visible {
  outline: 1px solid #84C;
  text-decoration: underline;
}

button[type="submit"][disabled] {
  background-color: #F0F0F0;
  color: #8B7E8C;
}

button[type="submit"][disabled].blocked {
  cursor: not-allowed;
}

button[type="submit"][disabled].loading {
  cursor: wait;
}

.alert-success, .alert-warning {
  padding: 8px;
  margin: 15px 0;
  border-radius: 8px;
}

.alert-success {
  background: #66C8F8;
}

.alert-warning {
  background: #F8D866;
}

.pf-c-alert__icon {
  display: inline-block;
  vertical-align: middle;
}
.pf-c-alert__icon::before {
  content: "⚠️";
  filter: invert() grayscale() contrast(2);
  font-size: 1.6em;
}

#kc-info-message p {
  line-height: 1.66em;
}

#kc-info p {
  background: #DDD;
  padding: 14px 16px;
  margin: 15px 0;
  border-radius: 8px;
}

#main-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: whitesmoke;
  background-color: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  padding: 10px 25px;
  border-radius: 15px 15px 0px 0px;
}

#main-footer > a {
  text-decoration: none;
  color: cornflowerblue;
}

#error-container {
  padding: 15px 0;
  text-align: center;
}

#input-error {
  display: block;
  padding: 8px;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  color: darkred;
  background: #FE6;
}

input:-webkit-autofill {
  animation-name: onautofillstart;
}

input:not(:-webkit-autofill) {
  animation-name: onautofillcancel;
}

@keyframes onautofillstart { from {} }
@keyframes onautofillcancel { from {} }

#kc-locale {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 135%);
}
@media (max-height: 800px) { /* Small screen. Move locale to the right */
  #kc-locale {
    bottom: auto;
    top: -55px;
    left: 500px;
  }
}

.locale-list {
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  left: 0;
  bottom: 0;
  transform: translateY(100%);
  width: 100%;
  overflow-y: hidden;
  max-height: 0;
  transition: max-height 0.2s;
}

.locale-list li {
  background-color: rgba(0, 0, 0, 0.25);
  width: 100%;
  padding: 10px 25px;
  text-align: center;
}

.locale-list li:hover {
  background-color: rgba(92, 92, 92, 0.4);
}

.locale-list > a:last-of-type > li {
  border-radius: 0px 0px 15px 15px;
}

#kc-locale-dropdown {
  color: whitesmoke;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 10px 25px;
  border-radius: 15px;
  transition: border-radius 0.2s ease-in;
  white-space: nowrap;
}

#kc-locale-dropdown:hover > .locale-list {
  max-height: 500px;
}

#kc-locale-dropdown:hover {
  border-radius: 15px 15px 0px 0px;
}

#kc-locale-dropdown a {
  text-decoration: none;
  color: cornflowerblue;
}

#kc-locale-dropdown > span::after {
  margin-left: 5px;
  content: '▼';
}

#kc-locale-dropdown:hover > span::after {
  margin-left: 5px;
  content: '▲';
}

#kc-social-providers h4 {
  color: rgba(0,0,0,.6);
}

#social-providers {
  text-align: center;
}

#social-providers > a {
  margin: 1em;
  white-space: nowrap;
  color: rgba(0,0,0,.4);
  text-decoration: none;
  border: 2px solid #84C;
  border-radius: 12px;
  padding: 8px;
  display: inline-block;
  box-shadow: 0 0 0 rgba(0,0,0,.2);
  transition: .3s;
}

#social-providers > a:hover {
  box-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

.kc-social-icon-text {
  display: inline-block;
  vertical-align: middle;
}

.icon-provider {
  display: inline-block;
  width: 3em;
  height: 3em;
  vertical-align: middle;
  background-position: 50% 50%;
  background-size: contain;
}

.icon-provider--google {
  background-image: url(../svg/google-icon.svg);
}

.icon-provider--microsoft {
  background-image: url(../svg/microsoft-icon.svg);
}
