/*
 * celebrity-registration.css — Celebrity registration slideshow
 * Design system mirroring ParsaWebsite Convite page
 * Orbs, stars-burst, glass cards — modern & professional
 */

/* ================================================================
   FOUNDATIONS — Full viewport, no scroll
   ================================================================ */
.registration-app {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--mud-palette-primary, #0d0d1a);
}

.registration-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.registration-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.registration-slide.exit-left {
    opacity: 0;
    transform: translateX(-40px);
}

/* ================================================================
   AMBIENT BACKGROUND
   ================================================================ */
.bg-ambient {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25;
    animation: orb-float 8s ease-in-out infinite;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--mud-palette-tertiary, #5E8476);
    top: -100px; right: -100px;
}
.orb-2 {
    width: 300px; height: 300px; background: #6B5B95;
    bottom: -80px; left: -80px; animation-delay: -3s;
}
.orb-3 {
    width: 200px; height: 200px; background: #4FC3F7;
    top: 40%; left: 50%; animation-delay: -6s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -30px) scale(1.05); }
    66%      { transform: translate(-15px, 20px) scale(0.95); }
}

/* ================================================================
   SHOOTING STARS
   ================================================================ */
.stars-burst {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.stars-burst span {
    position: absolute;
    top: 50%; left: 50%;
    width: 2px; height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow:
        0 0 3px 2px rgba(255,255,255,0.25),
        0 0 8px 3px rgba(255,255,255,0.08);
    animation: starShoot linear infinite;
    animation-fill-mode: backwards;
    opacity: 0;
}
.stars-burst span::before {
    content: '';
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 90px; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.15), transparent);
}
@keyframes starShoot {
    0%   { transform: rotate(var(--angle, 315deg)) translateX(0); opacity: 0; }
    8%   { opacity: 0.6; }
    25%  { opacity: 0.35; }
    100% { transform: rotate(var(--angle, 315deg)) translateX(-1600px); opacity: 0; }
}

.stars-burst span:nth-child(1)  { --angle:305deg; top:4%;  right:8%;  left:auto; animation-delay:0s;    animation-duration:7s; }
.stars-burst span:nth-child(2)  { --angle:335deg; top:6%;  right:22%; left:auto; animation-delay:2.5s;  animation-duration:9s; }
.stars-burst span:nth-child(3)  { --angle:285deg; top:10%; right:46%; left:auto; animation-delay:5s;    animation-duration:8s; }
.stars-burst span:nth-child(4)  { --angle:315deg; top:2%;  right:68%; left:auto; animation-delay:1.2s;  animation-duration:11s; }
.stars-burst span:nth-child(5)  { --angle:270deg; top:16%; right:12%; left:auto; animation-delay:3.8s;  animation-duration:7.5s; }
.stars-burst span:nth-child(6)  { --angle:345deg; top:20%; right:38%; left:auto; animation-delay:6.5s;  animation-duration:10s; }
.stars-burst span:nth-child(7)  { --angle:295deg; top:26%; right:58%; left:auto; animation-delay:0.8s;  animation-duration:8.5s; }
.stars-burst span:nth-child(8)  { --angle:310deg; top:14%; right:82%; left:auto; animation-delay:4.2s;  animation-duration:9.5s; }
.stars-burst span:nth-child(9)  { --angle:260deg; top:33%; right:18%; left:auto; animation-delay:7.2s;  animation-duration:7.8s; }
.stars-burst span:nth-child(10) { --angle:330deg; top:38%; right:52%; left:auto; animation-delay:3s;    animation-duration:8.2s; }

/* ================================================================
   SECTION BG ACCENT DRIFT
   ================================================================ */
.section-bg-accent {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    filter: blur(120px); opacity: 0.12;
    background: var(--mud-palette-tertiary, #5E8476);
    top: 10%; left: -200px; pointer-events: none;
    animation: bg-accent-drift 10s ease-in-out infinite alternate;
    z-index: 0;
}
.section-bg-accent.right {
    left: auto; right: -200px; animation-direction: alternate-reverse;
}
@keyframes bg-accent-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

/* ================================================================
   SLIDE CONTENT
   ================================================================ */
.slide-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 720px;
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0;
}

.slide-number {
    font-size: 5rem; font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--mud-palette-tertiary, #5E8476);
    opacity: 0.08; line-height: 1;
    margin-bottom: -1.8rem;
    pointer-events: none; user-select: none;
    position: relative; z-index: 0;
}

/* ================================================================
   GLASS CARD (mirrors Convite .info-card)
   ================================================================ */
.reg-card {
    background: rgba(20,20,40,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 1.2rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative; z-index: 1;
    width: 100%;
}
.reg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    border-color: rgba(94,132,118,0.25);
}

.reg-icon {
    font-size: 3rem;
    color: var(--mud-palette-tertiary, #5E8476);
    filter: drop-shadow(0 0 12px rgba(94,132,118,0.4));
    margin-bottom: 0.25rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reg-card-title {
    color: rgba(255,255,255,0.95) !important;
    font-family: 'Montserrat', sans-serif !important;
}
.reg-card-body {
    color: rgba(255,255,255,0.72) !important;
    max-width: 580px; line-height: 1.75 !important;
}
.reg-card-body strong {
    color: rgba(255,255,255,0.9);
}

/* ================================================================
   SLIDE LOGO
   ================================================================ */
.slide-logo {
    height: 44px;
    filter: drop-shadow(0 0 12px rgba(94,132,118,0.4));
    margin-bottom: 1rem;
    position: relative; z-index: 2;
}

/* ================================================================
   FEATURE GRID (2-column layout inside cards)
   ================================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}
@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.feature-item:hover {
    border-color: rgba(94,132,118,0.2);
    background: rgba(94,132,118,0.04);
}
.feature-item strong {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.feature-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
}

/* ================================================================
   HIGHLIGHT BOX (callout box similar to PDF templates)
   ================================================================ */
.highlight-box-reg {
    width: 100%;
    background: rgba(94,132,118,0.06);
    border: 1px solid rgba(94,132,118,0.18);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
}
.highlight-box-reg strong {
    color: rgba(255,255,255,0.88);
}
.highlight-box-reg p {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   TERMS SECTIONS (structured terms with h4 headings)
   ================================================================ */
.terms-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.terms-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mud-palette-tertiary, #5E8476);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.01em;
}
.terms-section p {
    color: rgba(255,255,255,0.62);
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 0 0 0.5rem 0;
}
.terms-section p:last-child {
    margin-bottom: 0;
}
.terms-section strong {
    color: rgba(255,255,255,0.82);
}

/* ================================================================
   TECH BADGES
   ================================================================ */
.tech-badges {
    display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.25rem;
}
.tech-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.73rem; font-weight: 600; letter-spacing: 0.025em;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.55);
    user-select: none;
}
.tech-badge img.tech-logo {
    height: 16px; width: auto; opacity: 0.7;
}
.tech-badge.stripe {
    border-color: rgba(99,91,255,0.3);
    background: rgba(99,91,255,0.08);
    color: #8B85FF;
}
.tech-badge.auth0 {
    border-color: rgba(235,84,36,0.3);
    background: rgba(235,84,36,0.08);
    color: #F06A3E;
}

/* ================================================================
   TERMS SCROLL BOX (embedded inside the card)
   ================================================================ */
.terms-scroll-box {
    width: 100%;
    max-height: 340px;
    overflow-y: auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    text-align: left;
}
.terms-scroll-box::-webkit-scrollbar {
    width: 5px;
}
.terms-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}
.terms-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}
.terms-scroll-box strong {
    color: rgba(255,255,255,0.8);
}

/* ================================================================
   CHECKBOX
   ================================================================ */
.terms-checkbox-wrapper {
    display: flex; align-items: flex-start; gap: 0.75rem;
    text-align: left; margin-top: 0.25rem;
    cursor: pointer;
}
.terms-checkbox-wrapper .checkbox-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
    user-select: none;
}
.terms-checkbox-wrapper .checkbox-label strong {
    color: rgba(255,255,255,0.85);
}
.terms-checkbox-wrapper input[type="checkbox"] {
    margin-top: 2px;
    width: 18px; height: 18px;
    accent-color: var(--mud-palette-tertiary, #5E8476);
    cursor: pointer;
    flex-shrink: 0;
}

/* ================================================================
   NAVIGATION BUTTONS
   ================================================================ */
.slide-nav {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap; margin-top: 1.5rem;
    position: relative; z-index: 2;
}

.btn-reg {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.75rem 2rem;
    border-radius: 14px;
    font-weight: 600; font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer; border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    letter-spacing: 0.02em;
    user-select: none;
}

.btn-reg-primary {
    background: var(--mud-palette-tertiary, #5E8476);
    color: #fff;
    box-shadow: 0 8px 30px rgba(94,132,118,0.35);
}
.btn-reg-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(94,132,118,0.5);
}
.btn-reg-primary:disabled {
    opacity: 0.4; cursor: not-allowed;
}

.btn-reg-secondary {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-reg-secondary:hover {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
}

.btn-reg-large {
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
}

/* ================================================================
   WELCOME LOGO
   ================================================================ */
.welcome-logo {
    height: 90px;
    filter: brightness(0) saturate(100%)
            invert(53%) sepia(20%) saturate(616%) hue-rotate(103deg) brightness(92%) contrast(88%)
            drop-shadow(0 0 30px rgba(94,132,118,0.6));
    margin-bottom: 0.5rem;
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* ================================================================
   PROGRESS DOTS (bottom indicator)
   ================================================================ */
.slide-progress {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}
.progress-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.progress-dot.done {
    background: var(--mud-palette-tertiary, #5E8476);
}
.progress-dot.active {
    background: var(--mud-palette-tertiary, #5E8476);
    box-shadow: 0 0 12px rgba(94,132,118,0.6);
    transform: scale(1.4);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    .slide-number { font-size: 3.5rem; margin-bottom: -1.2rem; }
    .reg-card { padding: 1.75rem 1.25rem; }
    .terms-scroll-box { max-height: 240px; }
    .slide-progress { bottom: 1rem; gap: 0.4rem; }
    .btn-reg { padding: 0.65rem 1.4rem; font-size: 0.85rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .slide-logo { height: 34px; }
    .slide-content { padding-bottom: 5.5rem; }
    .registration-slide:not(.active) { overflow: hidden; }
    .registration-slide.active { overflow-y: auto; }
}
