html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.page-bg {
    background-image: url("../../images/signbg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* ✅ prevents zoom illusion */
    min-height: 100vh;
    width: 100%;
}

/* subtle overlay for readability on desktop too */
.page-bg::before{
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.45));
    z-index: 0;
}

.container{ position: relative; z-index: 1; }


.container {
    min-height: 100vh;
    display: flex;
    justify-content: space-between; /* LEFT + RIGHT like main.css */
    align-items: center;
    padding: 5%;
}


.left {
    color: rgb(255, 255, 255);
    max-width: 400px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 20);
}

.left h1 {
    font-size: 4rem;
    font-weight: bold;
}

.left h1 span {
    color: #c1121f;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 20);
}

.left p {
    margin-top: 1em;
    line-height: 1.5;
}


.card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.20);
    width: 400px;
    padding: 3em 2em;
    text-align: center;
}


.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.card h3 span {
    color: #c1121f;
}


.card select {
    width: 100%;
    padding: 0.8em;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.85);
    outline: none;
}

.card select:focus{
    border-color: rgba(193,18,31,.55);
    box-shadow: 0 0 0 4px rgba(193,18,31,.15);
}

.btn-link {
    display: block;
    width: 100%;
    padding: 0.9em;
    background: linear-gradient(180deg, #c1121f, #8a0e16);
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-top: 1em;
    border-radius: 999px;
}

.btn-link:hover {
    background: #8a0e16;
    color: white;
}

.card button:hover {
    background: #8a0e16;
}

@media (max-width: 768px) {

    /* Background behaves properly on mobile */
    .page-bg {
        background-image: url("../../images/signbg.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        min-height: 100svh; /* modern mobile safe height */
        width: 100%;
        position: relative;
    }

    /* Optional dark overlay for readability */
    .page-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 0;
    }

    /* Stack content vertically */
    .container {
        position: relative;
        z-index: 1;

        height: auto;               /* 🔥 REMOVE 100vh behavior */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        padding: 4em 1em 5em;
        gap: 2em;
        text-align: center;
    }

    .left {
        max-width: 100%;
        padding: 0 0.5em;
    }

    .left h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .left p {
        font-size: 0.95rem;
        margin-top: 0.8em;
    }

    .card {
        width: 100%;
        max-width: 360px;
        padding: 2em 1.5em;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card select {
        font-size: 0.95rem;
    }

    .btn-link {
        font-size: 1rem;
        padding: 0.9em;
    }
}

