:root {
  --ardem-navy: #152139;
  --ardem-blue: #2a3d5d;
  --ardem-teal: #25c4b6;
  --ardem-teal-dark: #1fae9f;
  --field-border: #ced4da;
  --muted: #5f6872;
  --danger: #dc3545;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #212529;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

.login-page {
  align-items: center;
  background: var(--ardem-navy);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

/* CSS recreation of the reference application's background asset. */
.login-page::before,
.login-page::after {
  content: "";
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.login-page::before {
  background: linear-gradient(135deg, #25c4b6 0%, #173148 50%, #25c4b6 100%);
  border-radius: 58px;
  height: min(59vw, 805px);
  width: min(59vw, 805px);
}

.login-page::after {
  background: var(--ardem-navy);
  border-radius: 60px;
  height: min(35vw, 480px);
  width: min(35vw, 480px);
}

.login-box {
  position: relative;
  width: 360px;
  z-index: 1;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card-header {
  padding: 32px 32px 16px;
  text-align: center;
}

.brand-logo {
  display: inline-block;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  height: 60px;
  object-fit: contain;
  width: auto;
}

.login-card-body {
  padding: 0 32px 32px;
}

.login-box-msg {
  color: var(--muted);
  margin: 0 0 20px;
  text-align: center;
}

.application-name {
  color: var(--ardem-blue);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.9px;
  margin-top: 5px;
  text-transform: uppercase;
}

.input-group {
  display: flex;
  margin-bottom: 16px;
}

.form-control {
  border: 1px solid var(--field-border);
  border-radius: 4px 0 0 4px;
  color: #495057;
  flex: 1;
  font: inherit;
  height: 38px;
  min-width: 0;
  padding: 6px 12px;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  outline: 0;
  position: relative;
  z-index: 1;
}

.input-group-text {
  align-items: center;
  background: #e9ecef;
  border: 1px solid var(--field-border);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: #495057;
  display: flex;
  justify-content: center;
  width: 40px;
}

.input-icon {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  height: 38px;
  padding: 6px 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ardem-teal);
  border-color: var(--ardem-teal);
  color: #fff;
  width: 100%;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--ardem-teal-dark);
  border-color: var(--ardem-teal-dark);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

#loginError {
  background: var(--danger);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(220, 53, 69, 0.35);
  color: #fff;
  font-weight: 600;
  left: 50%;
  margin: 0;
  min-width: 260px;
  padding: 12px 24px;
  position: absolute;
  text-align: center;
  top: calc(100% + 18px);
  transform: translateX(-50%);
}

.d-none {
  display: none;
}

@media (max-width: 560px) {
  .login-box {
    width: min(100%, 360px);
  }

  .login-page::before {
    height: 115vw;
    width: 115vw;
  }

  .login-page::after {
    height: 68vw;
    width: 68vw;
  }

  #loginError {
    min-width: 0;
    width: calc(100% - 48px);
  }
}

