html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ============ Identity page styles ============ */

@keyframes identity-blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

.identity-page {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  margin: 0;
  padding: 40px 20px;
  box-sizing: border-box;
}

.identity-form {
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.identity-form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.identity-form-body > [role="alert"]:empty {
  display: none;
}

.identity-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.identity-brand-name {
  font-family: monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0d1f3c;
  line-height: 1;
}

.identity-cursor {
  display: inline-block;
  width: 16px;
  height: 26px;
  background: #1a6bc4;
  animation: identity-blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

.identity-tagline {
  font-family: monospace;
  font-size: 12px;
  color: #3a6090;
}

.identity-prompt {
  font-family: monospace;
  font-size: 11px;
  color: #1a6bc455;
}

.identity-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.identity-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.identity-label {
  font-family: monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6a7a;
  margin: 0;
}

.identity-input {
  color-scheme: light;
  height: 40px;
  border-radius: 6px;
  border: 1.5px solid #c8d4e8;
  background: #ffffff;
  color: #0d1f3c;
  font-family: monospace;
  font-size: 14px;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.identity-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.identity-remember input[type="checkbox"] {
  accent-color: #1a4f9c;
}

.identity-remember label {
  font-family: monospace;
  font-size: 11px;
  color: #5a6a7a;
  margin: 0;
}

.identity-btn {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  background: #1a4f9c;
  color: #ffffff;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
}

.identity-links {
  display: flex;
  justify-content: space-between;
}

.identity-links-center {
  justify-content: center;
}

.identity-links a {
  font-family: monospace;
  font-size: 11px;
  color: #1a6bc4;
  text-decoration: none;
}

.identity-links a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .identity-page {
    padding: 24px 16px;
  }

  .identity-form {
    max-width: 100%;
  }

  .identity-brand-name {
    font-size: 26px;
  }
}

/* ============ Login split layout ============ */

.identity-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
}

.identity-left {
  background: #0d1f3c;
  padding: 80px 64px 80px 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.identity-left .welcome {
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.identity-left .welcome span {
  color: #58a6ff;
}

.identity-left .subtitle {
  font-size: 22px;
  color: #7a99cc;
  line-height: 1.6;
  margin: 0;
}

.identity-left .cmd {
  font-size: 15px;
  font-family: monospace;
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 0;
}

.identity-right {
  background: #f0f4f9;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.identity-body .identity-form {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.identity-body .identity-form > [role="alert"]:empty {
  display: none;
}

.identity-body .identity-brand {
  display: block;
  font-family: monospace;
  font-size: 30px;
  font-weight: 700;
  color: #0d1f3c;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: left;
}

.identity-body .identity-cursor {
  display: inline-block;
  width: 18px;
  height: 27px;
  vertical-align: -4px;
  background: #1a6bc4;
  margin-left: 2px;
  animation: identity-blink 1s step-end infinite;
}

.identity-body .identity-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.identity-body .identity-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.identity-body .identity-label {
  font-size: 14px;
  font-family: monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a7a;
  margin: 0;
}

.identity-body .identity-input {
  color-scheme: light;
  height: 52px;
  border-radius: 6px;
  border: 1.5px solid #0d1f3c;
  background: #ffffff;
  font-size: 18px;
  font-family: monospace;
  color: #0d1f3c;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.identity-body .identity-input:-webkit-autofill,
.identity-body .identity-input:-webkit-autofill:hover,
.identity-body .identity-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  -webkit-text-fill-color: #0d1f3c;
}

.identity-body .identity-remember {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-body .identity-remember input[type="checkbox"] {
  accent-color: #1a4f9c;
  width: 18px;
  height: 18px;
}

.identity-body .identity-remember label {
  font-size: 15px;
  font-family: monospace;
  color: #5a6a7a;
  margin: 0;
}

.identity-body .identity-btn {
  width: 100%;
  height: 58px;
  border-radius: 6px;
  background: #1a4f9c;
  color: #ffffff;
  border: none;
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.identity-body .identity-links {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-family: monospace;
}

.identity-body .identity-links a {
  color: #1a6bc4;
  text-decoration: none;
}

.identity-body .identity-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .identity-body {
    grid-template-columns: 1fr;
  }

  .identity-left {
    padding: 56px 40px 56px 40px;
  }

  .identity-right {
    padding: 56px 40px;
  }
}