/* PersonTees · Lucy AI Registration Gate
 * Modal styling for "register before using Lucy AI"
 * v1.0 · 2026-09-30
 */

#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-show {
  display: flex;
}

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

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

#pt-lucy-gate-modal {
  background: var(--v2-surface-1, #16171C);
  border: 1px solid var(--v2-hairline, rgba(255,255,255,0.12));
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: pt-gate-slide-up 240ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pt-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.pt-gate-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

#pt-lucy-gate-modal .pt-gate-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #A855F7, #EC4899);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

#pt-lucy-gate-modal h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

#pt-lucy-gate-modal p.pt-gate-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px;
  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;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pt-gate-field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 200ms ease;
  outline: none;
}

.pt-gate-field input:focus {
  border-color: #A855F7;
  background: rgba(168,85,247,0.08);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

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

.pt-gate-field .pt-gate-error {
  font-size: 12px;
  color: #EC4899;
  margin-top: 2px;
  display: none;
}

.pt-gate-field.pt-gate-error-shown .pt-gate-error {
  display: block;
}

.pt-gate-field.pt-gate-error-shown input {
  border-color: #EC4899;
  background: rgba(236,72,153,0.06);
}

.pt-gate-submit {
  background: linear-gradient(90deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 200ms ease;
  font-family: inherit;
}

.pt-gate-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168,85,247,0.35);
}

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

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

.pt-gate-foot {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.pt-gate-foot a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

@media (max-width: 480px) {
  #pt-lucy-gate-modal {
    padding: 24px;
  }
  #pt-lucy-gate-modal h2 {
    font-size: 20px;
  }
}
