﻿.auth-overlay, .Trailer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .auth-overlay.active, .Trailer.active {
        opacity: 1;
        pointer-events: all;
    }
.auth-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    color: #000;
}

    .auth-modal h2 {
        font-size: 22px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 6px;
        color: #111;
    }

    .auth-modal p.subtitle {
        font-size: 14px;
        color: #666;
        text-align: center;
        margin-bottom: 24px;
    }

.auth-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.Trailer-close {
    position: relative;
    bottom: 250px;
    left: 500px;
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: #999;
}
#mainVideoTrailer {
    width: 500px;
    height: 500px;
    border-radius: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

    .auth-field label {
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

    .auth-field input {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 12px 14px;
        font-size: 14px;
        outline: none;
        color: #111;
        transition: border-color 0.3s;
    }

        .auth-field input:focus {
            border-color: #e91e63;
        }

.auth-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.3s;
}

    .auth-btn:hover {
        opacity: 0.85;
    }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .auth-switch a {
        color: #e91e63;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }

.auth-error {
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.3);
    color: #e91e63;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

    .auth-error.show {
        display: block;
    }
    .error{
        color:red;
    }
    .succes{
        color: green;
    }
    @media(max-width:767px){
        .auth-modal{
            width:70%;
            max-width:350px;
        }
    }