/* --- Auth page resets — replaces Bootstrap's normalize that was removed --- */

html {
  font-size: 10px;
}

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

body {
  margin: 0;
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.42857143;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

h1, h2, h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

h4, h5, h6 {
  margin-top: 10px;
  margin-bottom: 10px;
}

h4 { font-size: 18px; }
h5 { font-size: 14px; }

a {
  text-decoration: none;
  color: #337ab7;
}

/* --- Auth page overrides --- */

.login-navbar {
  padding: 1.5rem 23%;
  display: flex;
  align-items: center;
}

.login-navbar img {
  max-height: 65px;
  height: auto;
}

.login-view {
  max-width: 500px;
  width: 100%;
  margin: 7% auto;
}

.as-button {
  color: #fff;
}

.auth-modal[aria-hidden="true"] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

.auth-modal__content {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  background-color: #1f2c3c;
  border-bottom: 1px solid #eee;
}

.auth-modal__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.auth-modal__close {
  border: 0;
  background: transparent;
  color: #cfd8dc;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.auth-modal__close:hover {
  color: #fff;
}

.auth-modal__body {
  padding: 15px;
}

.auth-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 15px 15px;
}

.auth-modal__footer .auth-btn {
  margin-bottom: 0;
}

.auth-form-group {
  margin-bottom: 15px;
}

.auth-control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.auth-form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.auth-form-control:focus {
  outline: 0;
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.auth-btn {
  display: inline-block;
  min-width: 80px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
}

.auth-btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.auth-twofa-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.auth-twofa-row .auth-twofa-label {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.auth-twofa-row .auth-twofa-value {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.auth-qr-wrap {
  margin-bottom: 15px;
}

/* --- Parsley validation --- */

.parsley-errors-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.parsley-errors-list:not(.filled) {
  display: none;
}

.parsley-errors-list.filled li {
  color: #e74c3c;
  font-size: 12px;
}

.auth-form-control.parsley-error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}

@media (max-width: 767px) {
  .auth-twofa-row {
    display: block;
  }

  .auth-twofa-row .auth-twofa-label,
  .auth-twofa-row .auth-twofa-value {
    max-width: none;
  }
}
