/* Senior Hawks 27 Access Gate Styles */

/* Hide the entire site behind the gate while locked.
   The inline <style> in <head> covers the pre-script paint flash. */
html.sh27-locked body > *:not(#sh27-gate) {
  display: none !important;
}

#sh27-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0a3d62 0%, #1e6091 60%, #2c7873 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  animation: sh27-fade-in 0.25s ease-out;
}

@keyframes sh27-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sh27-gate-card {
  max-width: 460px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sh27-gate-lock {
  font-size: 36px;
  margin-bottom: 8px;
}

.sh27-gate-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#sh27-gate h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sh27-gate-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px 0;
}

.sh27-gate-label {
  display: block;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

#sh27-gate-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0a3d62;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, transform 0.1s;
  box-sizing: border-box;
  font-family: inherit;
}

#sh27-gate-input:focus {
  border-color: #ffd54f;
}

.sh27-gate-shake {
  animation: sh27-shake 0.35s;
  border-color: #ff6b6b !important;
}

@keyframes sh27-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.sh27-gate-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  background: #ffd54f;
  color: #0a3d62;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}

.sh27-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 213, 79, 0.35);
}

.sh27-gate-btn:active {
  transform: translateY(0);
}

.sh27-gate-error {
  min-height: 18px;
  margin: 10px 0 0 0;
  font-size: 13px;
  color: #ffb3b3;
  font-weight: 500;
}

.sh27-gate-help {
  margin: 24px 0 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.sh27-gate-help a {
  color: #ffd54f;
  text-decoration: none;
  font-weight: 600;
}

.sh27-gate-help a:hover {
  text-decoration: underline;
}

.sh27-gate-links {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.sh27-gate-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin: 0 4px;
}

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

/* Mobile tweaks */
@media (max-width: 480px) {
  .sh27-gate-card {
    padding: 28px 22px;
  }
  #sh27-gate h1 {
    font-size: 20px;
  }
}
