:root {
    --primary: #006D77;
    --on-primary: #ffffff;
    --background: #fef8f3;
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d1b19;
    color: white;
    overflow: hidden;
}

.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.glass-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 4rem;
    border-radius: 3rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
    max-width: 720px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
    /* Ensure it starts invisible before the animation kicks in */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.holding-logo-container {
    position: relative;
    width: 66%;
    margin: 0 auto;
    z-index: 1;
    /* Establishes stacking context for glow */
}

.holding-logo-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 85%);
    z-index: -1;
    filter: blur(25px);
    border-radius: 50%;
    pointer-events: none;
}

.holding-logo {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    /* Ensures image sits above the blurred background */
}

.badge {
    display: inline-block;
    background: #fd9d1a;
    color: #1d1b19;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.message {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
    max-width: 480px;
}

.success-message .message {
    color: #fd9d1a;
    font-weight: 700;
    opacity: 1;
}

.preregister-container {
    width: 100%;
    max-width: 450px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preregister-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    font-weight: 700;
}

.preregister-form {
    width: 100%;
    position: relative;
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preregister-form:focus-within {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 30px rgba(253, 157, 26, 0.3);
}

.preregister-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    border-radius: 999px;

    /* Reveal Animation Logic */
    animation: inputReveal 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 2.8s;
    /* Waits for the glass card to finish fading in */
}

@keyframes inputReveal {

    0%,
    50% {
        max-width: 0;
        padding-left: 0;
        padding-right: 0;
        opacity: 0;
    }

    100% {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        opacity: 1;
    }
}

/* Chrome Autofill Fix */
.preregister-input:-webkit-autofill,
.preregister-input:-webkit-autofill:hover,
.preregister-input:-webkit-autofill:focus,
.preregister-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.25) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.preregister-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.preregister-btn {
    background: #fd9d1a;
    color: #1d1b19;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Attention Animation Logic */
    white-space: nowrap;
    animation: btnFlashShrink 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 2.8s;
}

@keyframes btnFlashShrink {
    0% {
        background: #fd9d1a;
        flex-grow: 1;
    }

    12% {
        background: #ffffff;
        flex-grow: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

    25% {
        background: #fd9d1a;
        flex-grow: 1;
        box-shadow: none;
    }

    37% {
        background: #ffffff;
        flex-grow: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }

    50% {
        background: #fd9d1a;
        flex-grow: 1;
        box-shadow: none;
    }

    100% {
        background: #fd9d1a;
        flex-grow: 0;
    }
}

.preregister-btn:hover {
    background: #ffffff;
    color: #1d1b19;
    box-shadow: 0 0 25px rgba(253, 157, 26, 0.4);
}

.footer {
    position: fixed;
    bottom: 2rem;
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
}

/* Mobile Responsiveness for Holding Page */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding: 1.5rem 0 1rem;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .glass-card {
        padding: 1rem 1.25rem;
        border-radius: 2.25rem;
        gap: 1.25rem;
        max-width: none;
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .logo {
        font-size: 1.75rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    .message {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .footer {
        position: static;
        margin-top: 1rem;
        font-size: 0.55rem;
        width: auto;
        opacity: 0.5;
    }

    .preregister-container {
        margin-top: 0.5rem;
    }

    .preregister-input {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .preregister-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }
}