/* PersonTees · Lucy AI Registration Gate
 * Modal styling for "register before using Lucy AI"
 * v1.1 · 2026-09-30 — Added error state + honeypot hidden styles
 */

#pt-lucy-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pt-gate-fade 200ms ease;
}

#pt-lucy-gate-backdrop.pt-gate-open {
  display: flex;
}

@keyframes pt-gate-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

#pt-lucy-gate-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1729 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  animation: pt-gate-rise 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pt-gate-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pt-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.pt-gate-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: rotate(90deg);
}

.pt-gate-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: 'SF Pro Display', system-ui, -apple-system, sans-serif;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

#pt-gate-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
}

.pt-gate-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.5;
}

.pt-gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-gate-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.pt-gate-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 200ms ease;
  box-sizing: border-box;
}

.pt-gate-field input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.pt-gate-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.pt-gate-field-error input {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.08);
}

.pt-gate-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

.pt-gate-error.pt-gate-show {
  display: block;
  animation: pt-gate-shake 300ms ease;
}

@keyframes pt-gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pt-gate-submit {
  width: 100%;
  padding: 13px 18px;
  margin-top: 4px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: inherit;
}

.pt-gate-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.pt-gate-submit:active {
  transform: translateY(0);
}

.pt-gate-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pt-gate-foot {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.pt-gate-foot a {
  color: rgba(139, 92, 246, 0.9);
  text-decoration: none;
}

.pt-gate-foot a:hover {
  text-decoration: underline;
}

/* 🛡️ Honeypot — keep hidden always */
.pt-gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  #pt-lucy-gate-modal {
    padding: 24px 20px;
  }
  #pt-gate-title {
    font-size: 18px;
  }
  .pt-gate-avatar {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}
