html,
body {
  height: 100%;
}

body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* OST Events additions (Task F3) */
.auth-logo img {
  width: 96px;
  height: auto;
}

.auth-app-name {
  margin: .25rem 0 1rem;
  font-size: 1.4rem;
  font-weight: bold;
}

.form-signin .form-group .form-control {
  margin-bottom: 0;
  border-radius: .25rem;
}

.form-signin .error-card {
  margin: 0 auto;
}

.debug-output {
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
}

/* Email sandbox (email sandbox spec §5): the orange SANDBOX button, fixed at the top centre of
   the sign-in pages (same look as .email-sandbox-btn in style.css). */
.email-sandbox-btn {
  position: fixed;
  top: .5rem;
  left: 50%;
  z-index: 1030;
  display: inline-block;
  max-width: calc(100% - 1rem);
  padding: .35rem 1.1rem;
  overflow: hidden;
  transform: translateX(-50%);
  background-color: #fd7e14;
  border: 2px solid #d9480f;
  border-radius: .35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

a.email-sandbox-btn:hover,
a.email-sandbox-btn:focus {
  background-color: #e8590c;
  color: #fff;
  text-decoration: none;
}

.email-sandbox-btn .fa-flask {
  margin-right: .35rem;
}

.email-sandbox-btn .email-sandbox-label {
  font-size: 1.15rem;
  letter-spacing: .08em;
}

/* Phones: the address on its own line under SANDBOX, wrapping when it is long (never cut off:
   phones have no hover tooltip); the button uses the page width, centred, and the page content
   starts below it. */
@media (max-width: 575.98px) {
  .email-sandbox-btn {
    right: .5rem;
    left: .5rem;
    width: -moz-fit-content;
    width: fit-content;
    max-width: none;
    margin: 0 auto;
    transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
  }

  .email-sandbox-btn .email-sandbox-sep {
    display: none;
  }

  .email-sandbox-btn .email-sandbox-to {
    display: block;
    font-size: .75rem;
  }

  .email-sandbox-btn + .form-signin {
    padding-top: 3.5rem;
  }
}
