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

html,
body {
    height: 100%;
    background: #05050a;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

canvas#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(
            ellipse 900px 600px at 50% 40%,
            rgba(236, 28, 36, 0.08),
            transparent 60%
        ),
        radial-gradient(ellipse at center, transparent 30%, #05050a 90%);
    pointer-events: none;
}

.top-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-bottom: 20px;
    max-width: 560px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px rgba(236, 28, 36, 0.5));
}

/* .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 20px;
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
} */

h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.gradient-word {
    background: linear-gradient(90deg, #ec1c24, #ff6b6b, #ec1c24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* .top-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 15px;
    line-height: 1.6;
} */

/* card wrap for 3D tilt */
.tilt-wrap {
    position: relative;
    z-index: 3;
    perspective: 1000px;
}

.card {
    position: relative;
    width: 380px;
    max-width: 90vw;
    padding: 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mx, 50%) var(--my, 50%),
        rgba(236, 28, 36, 0.65),
        transparent 60%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.15s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.divider span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11.5px;
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

input:focus {
    border-color: #ec1c24;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.22);
}

.cta {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #ec1c24, #b7292f);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition:
        transform 0.15s,
        box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(236, 28, 36, 0.4);
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(236, 28, 36, 0.55);
}

.footer {
    text-align: center;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12.5px;
}

.footer a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-chip {
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Verify Email page */
.verify-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 28, 36, 0.08);
    border: 1px solid rgba(236, 28, 36, 0.25);
    margin: 0 auto 18px;
}

.verify-copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 18px;
}

.verify-success {
    display: flex;
    align-items: flex-start;   /* was: center */
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #d3f9df;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.verify-success .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 7px;
}

.cta .arrow {
    display: inline-block;
    transition: transform 0.15s;
}

.cta:hover .arrow {
    transform: translateX(3px);
}

.cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.logout-link {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
