/**
 * gate.css — Piviro Private Testing Access Gate Modal
 * Ultra-premium glassmorphism modal matching Piviro visual identity.
 */

.gate-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 19, 43, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.gate-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.gate-modal-card {
  width: 440px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 60, 130, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 34px 32px 30px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-modal-backdrop.is-active .gate-modal-card {
  transform: translateY(0) scale(1);
}

/* Close Button */
.gate-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #64748B;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gate-close-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #0B132B;
  transform: scale(1.05);
}

/* Brand Logo Mark */
.gate-brand-icon-wrap {
  margin-bottom: 16px;
  display: inline-flex;
}

.gate-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(27, 110, 253, 0.28);
  display: block;
}

/* Typography */
.gate-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: #0B132B;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.gate-desc {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748B;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 340px;
}

/* Form */
.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-input-wrapper {
  position: relative;
  width: 100%;
}

.gate-input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(27, 110, 253, 0.2);
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #0B132B;
  letter-spacing: 0.15em;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 60, 130, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gate-input:focus {
  background: #FFFFFF;
  border-color: #1B6EFD;
  box-shadow: 0 0 0 4px rgba(27, 110, 253, 0.18);
}

.gate-input::placeholder {
  color: #94A3B8;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 14px;
}

/* Error Message Box */
.gate-error-banner {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1.2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #DC2626;
  text-align: center;
  animation: gateShake 0.35s ease;
}

.gate-error-banner.is-visible {
  display: block;
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Unlock Primary Button */
.btn-gate-submit {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: #1B6EFD;
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(27, 110, 253, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gate-submit:hover {
  background: #0d5fe6;
  box-shadow: 0 10px 28px rgba(27, 110, 253, 0.45);
  transform: translateY(-1px);
}

.btn-gate-submit:active {
  background: #0a4fc4;
  transform: translateY(0);
}

.btn-gate-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-gate-submit .gate-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-gate-submit:hover .gate-arrow {
  transform: translateX(3px);
}

/* Subtle Footer Note */
.gate-footer-note {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: -0.005em;
}
