* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
   /* height: 100%;
    overflow: hidden;*/
    background-color: #F78614;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;*/
}

body.homepage-active {
    background-image: url(../images/Connected_BG.png);
}

body.session-active {
    background-image: none;
}

.login-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-media {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .login-media img {
        height: 80vh;
        width: auto;
        max-width: 100%;
    }

.login-form {
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.login-row {
    margin-bottom: 20px;
}

    .login-row:last-child {
        margin-bottom: 0;
    }

    .login-row img {
        display: block;
        margin: 0 auto;
        max-width: 80%;
    }

    .login-row:first-child img {
        max-width: clamp(70px, 14vw, 135px);
    }

    .login-row:nth-child(2) img {
        max-width: clamp(200px, 42vw, 480px);
    }

/* On narrow phones the min side of the clamps above (70px / 200px) stops shrinking with the
   viewport and overflows the .login-form column (55% width, further padded 24px each side),
   so these two images render oversized relative to everything else in the column. Lower just
   the floor for these two on small screens; the fb-login-btn clamp isn't affected since its
   200px..480px range never gets floored out until much narrower than these breakpoints. */
@media (max-width: 480px) {
    .login-row:first-child img {
        max-width: clamp(50px, 14vw, 90px);
    }

    .login-row:nth-child(2) img {
        max-width: clamp(140px, 42vw, 320px);
    }
}

.fb-login-btn {
    display: none;
    cursor: pointer;
    max-width: 100%;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

    .fb-login-btn:hover {
        filter: drop-shadow(0 0 6px rgba(41, 140, 255, 0.9)) drop-shadow(0 0 16px rgba(41, 140, 255, 0.7));
    }

    .login-row img.fb-login-btn {
        max-width: clamp(180px, 34vw, 300px);
    }

    .fb-login-btn.is-connecting {
        opacity: 0.6;
        pointer-events: none;
    }

.login-prompt {
    display: none;
}

.loading-text {
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    animation: pulse 1.5s ease-in-out infinite;
}

.error-text {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #ff6b6b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.iframe-container {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 50%);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 10;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
