:root {
  --access-surface: #ffffff;
  --access-text: var(--gw-text);
  --access-danger: #9f1d1d;
  --access-danger-bg: #fff1f1;
}

.gw-access-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--access-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.access-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.access-card {
  position: relative;
  width: min(100%, 32rem);
  overflow: hidden;
  background: var(--access-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  box-shadow: 1px 1px 4px 0px rgba(0,0,0,0.2);
}

.access-glow {
  position: absolute;
  inset: -7rem 1rem auto;
  height: 12rem;
  pointer-events: none;
  filter: blur(2.5rem);
}

.access-card-inner {
  position: relative;
  padding: 2rem;
}

.access-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.access-logo {
  display: block;
  height: 55px;
  max-width: 100%;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.access-title {
  margin: 0;
  color: var(--access-text);
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1;
}

.access-muted {
  margin: 0.5rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
}

.access-form {
  display: grid;
  gap: 1rem;
}

.access-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.access-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.access-links a {
  color: var(--gw-blue-600);
  text-decoration: none;
}

.access-links a:hover,
.access-links a:focus {
  color: var(--gw-blue-800);
  text-decoration: underline;
}

.access-footer {
  margin: 1.5rem -2rem -2rem;
  padding: 0.95rem 2rem;
  font-size: 0.85rem;
  text-align: center;
}

.access-footer:not(.bg-secondary) {
  background: var(--bs-border-color);
}

.access-modal-icon {
  color: var(--bs-danger);
  font-size: 1.5rem;
  line-height: 1;
}

.access-alert {
  margin-bottom: 1rem;
  color: var(--access-danger);
  background: var(--access-danger-bg);
  border-color: rgba(159, 29, 29, 0.25);
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .access-page {
    padding: 1rem;
  }

  .access-card-inner {
    padding: 1.5rem;
  }

  .access-logo {
    width: 100%;
    max-width: 389px;
    height: auto;
  }

  .access-actions {
    grid-template-columns: 1fr;
  }

  .access-footer {
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    margin-left: -1.5rem;
  }
}

@media (max-height: 760px) and (min-width: 521px) {
  .access-page {
    padding-block: 1rem;
  }
}

@media (min-width: 1200px) and (max-width: 1300px) and (min-height: 680px) and (max-height: 760px) {
  .access-page {
    align-items: center;
    justify-content: center;
  }

  .access-logo {
    height: 40px;
  }

  .access-title {
    font-size: 1.35rem;
  }

  .access-form,
  .access-form .form-control,
  .access-form .form-floating > label,
  .access-actions .btn,
  .access-links,
  .access-footer,
  .access-alert {
    font-size: 90% !important;
  }
}
