:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

.preview-access-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  color: #2f2f2f;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82)),
    url("../images/IslamTaughtMe_Shirt_and_Website.png") center / cover fixed;
}

.preview-access-card {
  width: min(100%, 570px);
  padding: 24px 42px;
  border: 1px solid rgba(88, 179, 214, 0.65);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.preview-access-logo {
  display: block;
  width: min(100%, 460px);
  max-height: 170px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.preview-access-card h1 {
  margin: 0 0 14px;
  color: #222;
  font-size: 1.7rem;
  text-align: center;
}

.preview-access-card p {
  margin: 8px 0;
  line-height: 1.6;
}

.preview-access-instruction {
  margin-top: 16px !important;
}

.preview-access-form {
  margin-top: 18px;
}

.preview-password-row {
  display: block;
}

.preview-access-form label {
  display: block;
  margin: 0;
  margin-bottom: 8px;
  font-weight: 700;
}

.preview-access-form input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
}

.preview-access-form input[type="password"]:focus {
  border-color: #58b3d6;
  outline: 3px solid rgba(88, 179, 214, 0.2);
}

.preview-access-form button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #222;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.preview-access-form button:hover,
.preview-access-form button:focus-visible {
  color: #111;
  background: #58b3d6;
}

.preview-access-error {
  margin: 10px 0 0;
  color: #8b2635;
  font-weight: 700;
}

.preview-access-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

.preview-access-note span {
  display: block;
}

.preview-notice {
  flex: 0 0 auto !important;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  color: #fff;
  background: #944747;
}

.preview-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px var(--footer-inline-gutter, 60px);
}

.preview-notice-home .preview-notice-inner {
  padding-right: clamp(25px, 5vw, 75px);
  padding-left: clamp(25px, 5vw, 75px);
}

.preview-notice-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.preview-notice-copy small {
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.preview-test-credentials {
  color: #fba300;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.preview-exit-form {
  flex: 0 0 auto;
  margin: 0;
}

.preview-exit-form button {
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  background: #944747;
  font-weight: 700;
}

.preview-exit-form button:hover,
.preview-exit-form button:focus-visible {
  color: #944747;
  border-color: #944747;
  background: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.not-found-page {
  min-height: 60vh;
  padding: 180px 24px 80px;
  text-align: center;
  background: #f4f6f7;
}

.not-found-code {
  margin: 0;
  color: #944747;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.not-found-page h1 {
  margin: 12px 0;
  color: #222;
}

.return-countdown {
  color: #944747;
  font-weight: 700;
}

.not-found-home {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  background: #222;
  font-weight: 700;
}

.not-found-home:hover,
.not-found-home:focus-visible {
  color: #222;
  background: #58b3d6;
  text-decoration: none;
}

@media (max-width: 600px) {
  .preview-access-card {
    padding: 28px 22px;
  }

  .preview-access-card h1 {
    font-size: 1.4rem;
  }

  .preview-notice-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .preview-notice-home .preview-notice-inner {
    padding: 14px 18px;
  }
}
