* {
  box-sizing: border-box;
}

html.root {
  font-size: 100%;
}

body.dfb-body {
  background: url("../img/dfb-bg.jpg") no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

.dfb-page {
  height: 100%;
  width: 100%;
  background-color: rgba(246, 244, 241, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dfb-header {
  background-image: url(../img/dfb-logo.svg);
  background-repeat: no-repeat;
  background-size: contain;
  height: 42px;
  width: 300px;
  margin: 0 auto 38px;
}

.dfb-header-wrapper {
  display: none;
}

.dfb-form-card {
  width: 90%;
  background-color: #fff;
  -webkit-box-shadow: 0px 3px 9px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 3px 9px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0px 3px 9px 0 rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

@media screen and (min-width: 520px) {
  .dfb-form-card {
    width: 480px;
  }
}

.dfb-form-card-header h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 2rem;
}

.dfb-form-group,
.dfb-form-settings,
.dfb-form-options,
.dfb-form-buttons,
.alert,
.dfb-info-wrapper {
  margin: 0 0 2rem;
  width: 100%;
}

.dfb-form-group:last-child,
.dfb-form-settings:last-child,
.dfb-form-options:last-child,
.dfb-form-buttons:last-child,
.alert:last-child,
.dfb-info-wrapper:last-child {
  margin-bottom: 0;
}

.dfb-form-label {
  font-size: 1rem;
  color: #999;
}

.dfb-form-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 2px #bbb solid;
  border-radius: 0;
  padding: 0.7em 0.3em;
  font-size: 1.1rem;
  line-height: 1em;
  color: #333;
  box-shadow: none;
  transition: border-color 0.2s;
  margin-bottom: 2rem;
}

.dfb-form-input:hover {
  border: none;
  border-bottom: 2px #888 solid;
}

.dfb-form-input:focus {
  border: none;
  border-bottom: 2px #f00 solid;
  outline: none;
  box-shadow: none;
}

#kc-form-buttons {
  display: flex;
  justify-content: flex-end;
}

.dfb-btn {
  width: auto;
  margin: 0;
}

.dfb-btn-primary {
  font-size: 15px;
  background-color: #f00;
  background-image: none;
  border: none;
  color: #fff;
  padding: 0.6em 2em;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:active:focus {
  background-color: #f00;
}

a {
  color: #f00;
  text-decoration: none;
}

a:hover,
a:active {
  color: #c00;
  text-decoration: none;
  outline: none;
}

/* Checkbox */
.checkbox {
  width: 100%;
}

.checkbox label {
  width: 100%;
  height: 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 1em;
}

.checkbox label input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  box-sizing: border-box;
  margin-right: 1em;
}

.checkbox label input::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: 'Font Awesome 5 Free';
  content: '\f0c8';
  font-size: 1.3em;
  color: #888;
}

.checkbox label input:checked:before {
  content: '\f14a';
  font-weight: 900;
  color: #f00;
}

.checkbox label input:active,
.checkbox label input:checked,
.checkbox label input:focus {
  outline: none;
}

.alert {
  border: 1px solid;
  border-color: #888;
  background-color: white;
  padding: 0.5em;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.alert .fas { /* icon */
  margin-right: 0.5em;
  font-size: 1.5em;
}

.alert.alert-error {
  border-color: #9e0000;
  background-color: white;
  color: #9e0000;
}

.alert.alert-warning {
  border-color: #ff9900;
  background-color: white;
  color: #ff9900;
}


/*
 * Restart Login
 */

/*div*/
#kc-username {
  background-color: #f7f7f7;
  padding: 1em;
  display: flex;
  flex-direction: column-reverse;
  margin: 0 0 2rem;
}

/*label*/
#kc-username #kc-attempted-username {
  align-self: center;
  font-size: 1.3em;
  margin-top: 0.4em;
}

/* reset link (anchor) */
#kc-username #reset-login {

}

/* div inside anchor */
#kc-username #reset-login .kc-login-tooltip {
}

/* icon */
#kc-username #reset-login .kc-login-tooltip i {
}

#kc-username #reset-login .kc-login-tooltip .kc-tooltip-text {
}

/*
 * Radio Buttons for Customer ID Choice
 */
.dfb-input-wrapper {
  margin-top: 1rem;
}

.dfb-radio-wrapper {
  display: flex;
}

.dfb-radio-wrapper .dfb-form-input {
  width: auto;
  display: inline-block;
  margin-bottom: 1.5rem;
  margin-right: 0.7rem;
}

.dfb-radio-wrapper label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #777;
}

.dfb-radio-wrapper label span {
  color: #000;
}

.dfb-radio-wrapper label small {
  font-size: 90%;
  margin-left: 0.7rem;
}

#kc-info {
  margin-top: 2rem;
  color: #777;
}
