﻿html,
body {
    min-height: 100%;
}

body {
    /* This stylesheet positions the Vanta canvas behind the Login/Register content
       rendered inside MainLayout's #webgl-background host. */
    margin: 0;
    background-color: #061923;
}

/* Establish a local stacking context so the animated canvas stays behind the form. */
.login-experience {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
}

#webgl-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* The canvas is decorative and must not intercept form clicks or scrolling. */
    pointer-events: none;
}

#webgl-background canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.login-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    padding: 4rem 1rem 2rem;
    color: white;
    background: transparent;
}

@media (max-width: 640.98px) {
    .login-content {
        padding-top: 2rem;
    }
}

/*
    Keep all normal website content above WebGL.
*/
header,
.site-content,
footer {
    position: relative;
    z-index: 1;
}

/*
    Optional styling so content stays readable.
*/
.site-content {
    min-height: 100vh;
    color: white;
}

/*
    Optional translucent navbar.
*/
.navbar {
    background-color: rgba(4, 20, 30, 0.75);
    backdrop-filter: blur(10px);
}

.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.hero-section h1 {
    margin: 0;
    max-width: 900px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 11vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.hero-description {
    max-width: 600px;
    margin: 2rem 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: white;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

    .hero-button:hover {
        color: #061923;
        background-color: white;
    }
