/* ============================================================
   REGISTER PAGE — modern glassy cards matching the site theme
   (gold #c19114 on dark, Inter, 16px+ radii, soft borders).
   ============================================================ */
.stream-auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 130px 20px 150px;
    gap: 26px;
    overflow: hidden;

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

    .auth-benefits {
        position: relative;
        width: 100%;
        max-width: 480px;
        background: rgba(12, 13, 16, 0.88);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        backdrop-filter: blur(18px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 18px;
        box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.95);
        color: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 28px;
        align-self: stretch;
        z-index: 2;

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

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

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

            h2 {
                position: relative;
                font-size: 1.5em;
                font-weight: 800;
                letter-spacing: -0.015em;
                padding-left: 15px;
                margin-bottom: 16px;
                margin-top: 26px;
            }

            h2::before {
                content: "";
                position: absolute;
                left: 0;
                top: 3px;
                bottom: 3px;
                width: 4px;
                border-radius: 3px;
                background: linear-gradient(180deg, #c19114 0%, #2f506f 100%);
            }

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

                li {
                    margin-bottom: 12px;
                    padding-left: 24px;
                    position: relative;
                    color: rgba(255, 255, 255, 0.82);
                    line-height: 1.5;

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

            .benefits-note {
                font-size: 1.5em;
                font-weight: 800;
                color: #c19114;
                letter-spacing: -0.015em;
            }
        }
    }

    .auth-container {
        position: relative;
        width: 100%;
        max-width: 580px;
        background: rgba(12, 13, 16, 0.88);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        backdrop-filter: blur(18px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.09);
        padding: 36px 32px;
        border-radius: 18px;
        box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.95);
        color: #fff;
        z-index: 2;

        /* gold/blue hairline along the card top */
        &::before {
            content: "";
            position: absolute;
            left: 18px;
            right: 18px;
            top: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(193, 145, 20, 0.6), rgba(47, 80, 111, 0.6), transparent);
            pointer-events: none;
        }

        .auth-title {
            position: relative;
            font-size: 1.7em;
            font-weight: 800;
            letter-spacing: -0.015em;
            padding-left: 16px;
            margin-bottom: 8px;
            line-height: 1.1;
        }

        .auth-title::before {
            content: "";
            position: absolute;
            left: 0;
            top: 3px;
            bottom: 3px;
            width: 4px;
            border-radius: 3px;
            background: linear-gradient(180deg, #c19114 0%, #2f506f 100%);
        }

        .auth-subtitle {
            color: #b3b3b3;
            font-size: 0.95em;
            padding-left: 16px;
            margin-bottom: 26px;
        }

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

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

                label {
                    margin-bottom: 7px;
                    color: #ddd;
                    font-size: 0.82em;
                    font-weight: 600;
                    letter-spacing: 0.4px;
                    text-transform: uppercase;
                }

                input,
                select {
                    width: 100%;
                    padding: 12px 14px;
                    background: rgba(255, 255, 255, 0.05);
                    border: 1px solid #333;
                    border-radius: 10px;
                    color: #fff;
                    font-family: inherit;
                    font-size: 0.95em;
                    outline: none;
                    transition: border-color .2s ease, background .2s ease;
                }

                input:focus,
                select:focus {
                    border-color: #c19114;
                    background: rgba(255, 255, 255, 0.08);
                }
            }

            /* Full-width elements */
            .auth-btn {
                grid-column: 1 / -1;
                width: 100%;
                margin-top: 6px;
            }

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

            /* Mandatory terms-acceptance checkbox — spans both columns so the
               wrapped text lines up with the fields above it. */
            .auth-terms {
                grid-column: 1 / -1;
                display: flex;
                align-items: flex-start;
                gap: 11px;
                margin-top: 6px;
                font-size: 0.82em;
                line-height: 1.65;
                color: #9a9a9a;
                text-align: left;
                cursor: pointer;

                input[type="checkbox"] {
                    flex: 0 0 auto;
                    width: 18px;
                    height: 18px;
                    margin-top: 1px;
                    accent-color: #c19114;
                    cursor: pointer;
                }

                span {
                    flex: 1 1 auto;
                }

                a {
                    color: #c19114;
                    text-decoration: underline;
                }

                a:hover {
                    color: #d4a017;
                }
            }
        }

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

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

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


/* ── Mobile: compact top/bottom space ── */
@media screen and (max-width: 768px) {
    .stream-auth-page {
        font-size: .95em;
        min-height: 0;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        padding: 100px 5% 150px;
        gap: 20px;

        .auth-benefits {
            padding: 22px;

            .benefits-banner {
                height: 140px;
            }
        }

        .auth-container {
            padding: 28px 22px;

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