/* Mobile Devices (Portrait and Landscape) */
@media (max-width: 480px) {
    .login-page {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        padding: 20px;
        height: auto; /* Adjust height for content */
        border: none;
        border-radius: 0;
    }

    .input-box {
        width: 100%;
        margin-bottom: 15px;
    }

    button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    /* Adjust video for mobile screens */
    .back-video {
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        z-index: -1;
    }
}

/* Tablets and Larger Devices */
@media (min-width: 481px) and (max-width: 768px) {
    .login-page {
        width: 70%;
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
        height: auto;
    }

    .input-box {
        width: 80%;
        margin-bottom: 20px;
    }

    button {
        width: 80%;
        padding: 12px;
        font-size: 18px;
    }

    /* Adjust video for tablet screens */
    .back-video {
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        z-index: -1;
    }
}

/* Landscape Orientation for Devices */
@media (orientation: landscape) {
    .back-video {
        width: 100%;
        height: auto;
    }
}

/* Portrait Orientation for Devices */
@media (orientation: portrait) {
    .back-video {
        width: auto;
        height: 100%;
    }
}