.stream-auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10% 20px 12%;
    gap: 30px;
    overflow: hidden;

    .overlay {
        filter: blur(20px) opacity(0.5);
    }

    .auth-benefits {
        width: 100%;
        max-width: 500px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 6px;
        color: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 30px;
        /* Matches auth-container height automatically */
        align-self: stretch;
        z-index: 2;

        .benefits-banner {
            height: 170px;
            width: 100%;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                border-radius: 6px;
            }
        }

        .benefits-content {
            display: flex;
            flex-direction: column;
            justify-content: center;

            h2 {
                font-size: 1.6em;
                margin-bottom: 15px;
                margin-top: 30px;
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0 0 20px;

                li {
                    margin-bottom: 12px;
                    padding-left: 22px;
                    position: relative;
                    color: #ddd;

                    &::before {
                        content: "✓";
                        position: absolute;
                        left: 0;
                        color: #d4af37;
                        font-weight: bold;
                    }
                }
            }

            .benefits-note {
                font-size: 1.6em;
                font-weight: 700;
                color: #fff;
            }
        }
    }

    .auth-container {
        width: 100%;
        max-width: 600px;
        background: rgba(0, 0, 0, 0.8);
        padding: 40px;
        border-radius: 6px;
        color: #fff;
        z-index: 2;

        .auth-title {
            font-size: 1.8em;
            margin-bottom: 10px;
            line-height: 100%;
        }

        .auth-subtitle {
            color: #b3b3b3;
            margin-bottom: 30px;
        }

        .auth-form {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;

            .auth-group {
                display: flex;
                flex-direction: column;

                label {
                    margin-bottom: 6px;
                    color: #ddd;
                }

                input,
                select {
                    width: 100%;
                    padding: 8px;
                    background: #1c1c1c;
                    border: 1px solid #333;
                    border-radius: 4px;
                    color: #fff;
                }
            }

            /* Full-width elements */
            .auth-btn {
                grid-column: 1 / -1;
                width: 100%;
                border: none;
                padding: 12px;
                margin-top: 10px;
                cursor: pointer;
                font-size: 1.3em;
            }

            .auth-error {
                grid-column: 1 / -1;
                margin-top: 12px;
                color: #ff4c4c;
            }
        }

        .auth-signin {
            margin-top: 25px;
            text-align: center;
            color: #b3b3b3;
            font-size: 14px;

            a {
                color: #fff;
                text-decoration: none;
                margin-left: 5px;
                font-weight: 500;

                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}


@media screen and (max-width: 768px) {
    .stream-auth-page {
        font-size: .9em;
        margin-bottom: 80px;
        flex-direction: column;
        padding: 20% 20px 13%;

        .auth-container {
            .auth-form {
                grid-template-columns: repeat(1, 1fr);
            }
        }
    }
}