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

body, html {
    height: 100%;
    font-family: 'Geist', sans-serif;
    background: url('/views/static/img/BaryonsBackgroundLarge.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    display: flex;
    /* Remove fixed viewport height so the footer becomes part of total flow */
    /* height: 100vh; */
    background-color: transparent;
    flex: 1 0 auto; /* allow it to grow and push footer down */
    align-items: stretch;
}

.left {
    flex: 1;
    background: transparent;
}

.right {
    padding-top: 80px;
    flex: 1;
    display: flex;
    flex-direction: column; /* so inner content can stretch */
    align-items: stretch;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.9);
    /* Make sure it spans full height of the flexible container */
    min-height: 100%;
}

.content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto; /* keep centered horizontally */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* allow vertical stretch */
    padding-bottom: 32px; /* space above footer */
}

.desktop-content {
    display: block;
    text-align: center;
    max-width: 400px;
}

.mobile-content {
    display: none;
    text-align: center;
    max-width: 400px;
}

.desktop-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 30px;
}

.mobile-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 30px;
}

.circle-image {
    margin-bottom: 20px;
}

.circle-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid #dbdbdb;
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
}

.signup {
    /* background-color: #6a4cd8; */
    background-color: #5fb8d9;
    color: #fff;
}

.signup:hover {
    background-color: #349dc3;
}

.login {
    background-color: transparent;
    /* color: #6a4cd8;
    border: 2px solid #6a4cd8; */
    color: #5fb8d9;
    border: 2px solid #5fb8d9;
}

.login:hover {
    background-color: #5fb8d9;
    color: #fff;
}

.terms {
    margin-top: auto; /* push terms to bottom of right panel */
    font-size: 0.8rem;
    color: #aaa;
}

/* ---- Page level flex layout so footer sits after stretched container ---- */
html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1 0 auto; /* take remaining vertical space above footer */
}

footer.site-footer {
    flex-shrink: 0;
    margin-top: 0; /* remove extra gap so right panel touches footer */
}

/* ---------------- Footer Styles (moved from inline in home.html) ---------------- */
.site-footer {
    background: #0d1b2a;
    opacity: 0.90;
    color: #ffffff;
    margin-top: 60px;
    padding: 40px 24px 28px;
    font-size: 14px;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

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

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: start;
    max-width: 1200px;
    margin: 0 auto 24px;
}

.footer-brand h5 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.footer-brand .subtitle {
    color: #DDDDDD;
    font-size: 14px;
    max-width: 260px;
    line-height: 1.4;
    margin: 0;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-social ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background .25s, border-color .25s;
}

.footer-social a:hover {
    background: #1b2f47;
    border-color: #ffffff;
}

.footer-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

/* Media Queries for Responsive Design */
@media (max-width: 830px) {

    body,
    html {
        height: 100%;
        font-family: 'Geist', sans-serif;
        background: url('/views/static/img/BaryonsBackgroundLarge.jpg') no-repeat center center fixed;
        background-size: cover;
    }

    .container {
        flex-direction: column;
    }

    .left {
        display: none;
    }

    .right {
        flex: 1;
        width: 100%;
        background-color: transparent;
    }

    .content {
        text-align: center;
        max-width: 90%;
        background-color: rgba(255, 255, 255, 0.9);
        /* White background */
        border-radius: 15px;
        /* Rounded corners */
        padding: 20px;
        /* Padding */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        /* Box shadow */
        height: 100%;
        max-height: 800px;
    }

    .desktop-content {
        display: none;
    }

    .mobile-content {
        display: block;
    }
}

@media (max-width:820px) {
    .footer-social ul {
        justify-content: flex-start;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

        .right {
            padding-top: 50px;
            padding-bottom: 50px;
        }
    
        .content {
            /* border: 4px solid red; */
            width: 65%;
            min-width: 400px;
        }

    .mobile-content {
        margin: 0 auto;
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 400px;
    }

    .buttons {
        margin: 0 auto;
        width: 75%;
    }

        .footer-brand {
            display: none;
        }
    
        .footer-product-links {
            display: none;
        }
    
        .footer-company-links {
            display: none;
        }
}

@media (max-width:768px) {
    .footer-social ul {
        justify-content: flex-start;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .right {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .content {
        /* border: 4px solid red; */
        width: 65%;
        min-width: 400px;
    }

    .mobile-content {
        margin: 0 auto;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 400px;
    }

    .buttons {
        margin: 0 auto;
        width: 75%;
        padding-bottom: 40px;
    }

}

@media (max-width:640px) {
    /* .footer-social ul {
        justify-content: flex-start;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    } */

        .content {
            /* border: 4px solid red; */
            width: 90%;
            min-width: 350px;
        }

    .right {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer-brand {
        display: none;
    }

    .footer-product-links {
        display: none;
    }

    .footer-company-links {
        display: none;
    }
}

.terms a {
    color: #5fb8d9;
    text-decoration: none;
}
.terms a:hover {
    text-decoration: underline;
}
