:root {
    /* Brand Colors */
    --brief-blue: #3A7BFF;
    --headline-black: #0F1216;
    --paper-white: #F8F9FB;
    --highlight-mint: #3EFFC0;

    /* Extras */
    --glass-bg: rgba(15, 18, 22, 0.75);
    --border-subtle: rgba(248, 249, 251, 0.12);
    --error-red: #ff4b6b;
    --success-green: #3EFFC0;
    --text-muted: #B2B7C5;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* Reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
    background: var(--headline-black);
    color: var(--paper-white);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Aurora Background Layers */

.aurora-layer {
    position: fixed;
    inset: -20%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.75;
    mix-blend-mode: screen;
    z-index: 0;
}

.aurora-layer-1 {
    background:
        radial-gradient(circle at 10% 20%, rgba(58, 123, 255, 0.7) 0, transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(62, 255, 192, 0.6) 0, transparent 60%);
    animation: auroraDrift1 18s ease-in-out infinite alternate;
}

.aurora-layer-2 {
    background:
        radial-gradient(circle at 0% 100%, rgba(62, 255, 192, 0.5) 0, transparent 60%),
        radial-gradient(circle at 90% 70%, rgba(58, 123, 255, 0.5) 0, transparent 55%);
    animation: auroraDrift2 24s ease-in-out infinite alternate;
    opacity: 0.6;
}

.aurora-layer-3 {
    background:
        radial-gradient(circle at 50% 50%, rgba(248, 249, 251, 0.18) 0, transparent 65%);
    animation: auroraPulse 26s ease-in-out infinite alternate;
    opacity: 0.4;
}

/* Layout */

.page-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.content {
    max-width: 640px;
    width: 100%;
    background: var(--glass-bg);
    border-radius: 28px;
    padding: 32px 28px 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(26px) saturate(140%);
}

/* Logo Row */

.logo-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 249, 251, 0.12);
    background: radial-gradient(circle at top left, rgba(58, 123, 255, 0.25), transparent),
                rgba(15, 18, 22, 0.85);
    margin-bottom: 18px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--highlight-mint), var(--brief-blue));
    box-shadow: 0 0 12px rgba(62, 255, 192, 0.9);
}

.logo-text {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Typography */

.headline {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: var(--paper-white);
    margin-bottom: 14px;
}

.headline .accent {
    background: linear-gradient(135deg, var(--highlight-mint), var(--brief-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subheadline {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 36rem;
    margin-bottom: 20px;
}

/* Alerts */

.alert {
    font-size: 0.86rem;
    padding: 9px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(18px);
    background: rgba(15, 18, 22, 0.85);
    border: 1px solid rgba(248, 249, 251, 0.16);
}

.alert.success {
    border-color: rgba(62, 255, 192, 0.7);
    color: var(--highlight-mint);
}

.alert.error {
    border-color: rgba(255, 75, 107, 0.75);
    color: var(--error-red);
}

/* Form */

.signup-form {
    margin-top: 8px;
}

.input-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
    background: rgba(15, 18, 22, 0.9);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid rgba(248, 249, 251, 0.16);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
}

.input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--paper-white);
    padding: 10px 16px;
    font-size: 0.96rem;
    outline: none;
}

.input-wrap input::placeholder {
    color: rgba(178, 183, 197, 0.75);
}

.input-wrap button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--brief-blue), var(--highlight-mint));
    color: var(--headline-black);
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 12px 32px rgba(58, 123, 255, 0.55);
}

.input-wrap button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 16px 45px rgba(58, 123, 255, 0.75);
}

.input-wrap button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(58, 123, 255, 0.6);
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-left: 14px;
}

/* Animations */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.75s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.12s;
}

.fade-in-delayed-2 {
    opacity: 0;
    animation: fadeInUp 0.85s ease forwards;
    animation-delay: 0.24s;
}

.fade-in-delayed-3 {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.36s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auroraDrift1 {
    0% {
        transform: translate3d(-5%, 5%, 0) scale(1.1);
    }
    50% {
        transform: translate3d(8%, -3%, 0) scale(1.15);
    }
    100% {
        transform: translate3d(-6%, -8%, 0) scale(1.1);
    }
}

@keyframes auroraDrift2 {
    0% {
        transform: translate3d(5%, -6%, 0) scale(1);
    }
    50% {
        transform: translate3d(-4%, 4%, 0) scale(1.1);
    }
    100% {
        transform: translate3d(10%, -2%, 0) scale(1.05);
    }
}

@keyframes auroraPulse {
    0% {
        opacity: 0.25;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-12px) scale(1.08);
    }
    100% {
        opacity: 0.35;
        transform: translateY(8px) scale(1.02);
    }
}

/* UNIVERSAL FOOTER */

.footer {
    width: 100%;
    margin-top: 40px;
    padding: 40px 0 20px;
    background: rgba(15, 18, 22, 0.65);
    backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid rgba(248, 249, 251, 0.08);
    color: var(--text-muted);
    z-index: 10;
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    padding: 0 24px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--paper-white);
}

.footer-col a {
    display: block;
    margin: 4px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--highlight-mint);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */

@media (max-width: 640px) {
    .content {
        padding: 24px 18px 22px;
        border-radius: 20px;
    }

    .headline {
        font-size: 1.9rem;
    }

    .input-wrap {
        flex-direction: column;
        padding: 6px;
        border-radius: 16px;
    }

    .input-wrap button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .form-note {
        padding-left: 4px;
    }
}