﻿/* Main element styling  height: 69.1vh; */
@media (min-width: 1001px) {

    main {
        display: flex;
        height: calc(100vh - 290px);
        min-height: 586px;
        
    }

    .dapic1-container {
        flex-basis: 66%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 1px;
    }

    .dapic1 {
        object-fit: cover; /* Use "contain" to fit the image within the container while maintaining aspect ratio */
        width: 100%;
        height: 100%;
    }

    .textcontainer {
        flex-basis: 34%;
        min-width: 440px;
        background-color: white;
        box-sizing: border-box;
        border-top: 1px solid rgb(200, 200, 200); /* Set the top border only */
        border-left: none; /* Remove left border */
        border-right: none; /* Remove right border */
        border-bottom: none; /* Remove bottom border */
        display: flex;
        align-items: center;
    }

        /* Create a 3D shadow at the top using ::before pseudo-element */
        .textcontainer::before {
            content: "";
            position: absolute;
            top: 130px;
            left: 0;
            right: 0;
            height: 4px; /* Increased shadow height */
            background: linear-gradient( rgba(97, 97, 97,.75), rgba(0, 0, 0, 0)); /* Made the shadow darker */
            opacity: .5; /* Adjusted opacity */
        }

    .subtextcontainer {
        text-align: center;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .subtextcontainer {
        text-align: center;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .textcontainer h2 {
        font-size: 30px;
        margin-bottom: 20px;
        margin-top: 70px;
        color: rgb(11, 47, 91);
        font-weight: 400;
        text-align: center;
        line-height: 42px;
    }

    .subheader-container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .subheader {
        font-size: 18px;
        color: rgb(97, 97, 97);
        font-weight: 400;
        margin-bottom: 42px;
        margin-top: 0px;
        line-height: 28.8px;
        width: 240px;
    }

    .subheader-invalid {
        font-size: 18px;
        color: red;
        font-weight: 400;
        margin-bottom: 0px;
        top: 55px;
        width: 280px;
        position: absolute;
        text-align: center;
    }

    .subheader-attempts {
        font-size: 18px;
        color: red;
        font-weight: 400;
        margin-bottom: 0px;
        top: 55px;
        width: 280px;
        position: absolute;
        text-align: center;
    }

    .login-form {
        display: flex;
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
        justify-content: center;
        align-content: center;
        font-weight: 400;
    }

        .login-form label {
            font-size: 16px;
            margin-bottom: 22px;
        }

        .login-form input {
            background-color: transparent;
            margin-bottom: 4px;
            margin-top: 15px;
            padding: 0px 2px 2px 2px;
            font-size: 15px;
            border: none;
            border-bottom: 1px solid black;
            width: 276px;
            outline: none;
            -webkit-appearance: none;
            border-radius: 0;
            appearance: none;
        }

            .login-form input:hover {
                border: none; /* Remove all borders */
                border-bottom: 2px solid black; /* Increase the bottom border to 2px on hover */
                -webkit-appearance: none;
            }

            .login-form input:focus,
            .login-form input.filled {
                border: none;
                border-bottom: 2px solid black !important;
                -webkit-appearance: none;
            }

    input[type="password"]::-ms-reveal {
        display: none;
    }
                
        .login-form button {
            background-color: rgb(11, 47, 91);
            color: rgb(218, 218, 218);
            margin-top: 15px;
            padding-top: 8px;
            padding-bottom: 8px;
            border: 1px solid rgb(11, 47, 91) !important;
            font-size: 20px;
            font-weight: 400;
            border: none;
            cursor: pointer;
            width: 280px;
            margin-bottom: 40px;
            border-radius: 8px;
        }

            .login-form button:hover {
                background-color: rgb(218, 218, 218);
                color: rgb(11, 47, 91);
                margin-top: 15px;
                padding-top: 8px;
                padding-bottom: 8px;
                border: 1px solid rgb(11, 47, 91) !important;
                font-size: 20px;
                font-weight: 400;
                border: none;
                cursor: pointer;
                width: 280px;
                margin-bottom: 40px;
                border-radius: 8px;
            }

    .subtextcontainer a {
        text-decoration: none;
        color: rgb(11,47,91);
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 70px;
    }

    .textda1:hover {
        color: rgb(218,218,218);
    }

    .custom-control-input {
        display: none;
    }

    .forgot-link {
        font-size: 16px;
        font-weight: 400;
        margin-left: 71px;
        height: 20px;
        color: rgb(11, 47, 91);
        cursor: pointer;
    }

        .forgot-link:hover {
            color: rgb(218,218,218)
        }

        .password-container {
            position: relative;
            display: flex;
            align-items: center;
        }

    .toggle-password {
        position: absolute;
        right: 10px;
        cursor: pointer;
        border: none;
        background: transparent;
        top: 16px;
        right: 0px;
    }



    /* The Modal (background) */
    .modal {
        display: none;
        position: fixed;
        z-index: 4;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0,0,0);
        background-color: rgba(0,0,0,0.5);
    }

    

    .modal-content h2 {
        font-size: 30px;
        margin-top: 0;
        margin-bottom: 20px;
        color: rgb(11, 47, 91);
        font-weight: 400;
        text-align: center;
    }

    .modal-content p {
        font-size: 18px;
        color: rgb(97, 97, 97);
        font-weight: 400;
        margin-bottom: 30px;
        margin-top: 0px;
        width: auto;
    }

    /* The Close Button */
    .close {
        color: black;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

    .modal-content input {
        background-color: transparent;
        margin-bottom: 4px;
        padding: 0px 2px 2px 2px;
        font-size: 15px;
        border: none;
        border-bottom: 1px solid black;
        width: 276px;
        outline: none;
        -webkit-appearance: none;
        border-radius: 0;
        appearance: none;
    }

        .modal-content input:hover {
            border: none; /* Remove all borders */
            border-bottom: 2px solid black; /* Increase the bottom border to 2px on hover */
            -webkit-appearance: none;
        }

        .modal-content input:focus,
        .modal-content input.filled {
            border: none;
            border-bottom: 2px solid black !important;
            -webkit-appearance: none;
        }

    .modal-content label {
        font-size: 16px;
        display: block;
        text-align: left;
    }

    .modal button {
        background-color: rgb(11, 47, 91);
        color: rgb(218, 218, 218);
        margin-top: 20px;
        padding-top: 8px;
        padding-bottom: 8px;
        border: 1px solid rgb(11, 47, 91) !important;
        font-size: 20px;
        font-weight: 400;
        border: none;
        cursor: pointer;
        width: 280px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

        .modal button:hover {
            background-color: rgb(218, 218, 218);
            color: rgb(11, 47, 91);
            margin-top: 20px;
            padding-top: 8px;
            padding-bottom: 8px;
            border: 1px solid rgb(11, 47, 91) !important;
            font-size: 20px;
            font-weight: 400;
            border: none;
            cursor: pointer;
            width: 280px;
            margin-bottom: 20px;
            border-radius: 8px;
        }
}




@media (min-width: 1310px) {
    .modal-content {
        background-color: white;
        margin: 130px auto auto 83%;
        padding: 20px;
        border: 1px solid black;
        width: 398px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-weight: 400;
        transform: translateX(-50%);
    }

}



    @media (max-width: 1309px) and (min-width: 1001px) {

        /* Modal Content */
        .modal-content {
            background-color: white;
            margin: 130px 0 auto auto;
            padding: 20px;
            border: 1px solid black;
            width: 398px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            font-weight: 400;
        }
    }









    /* Media query for screens smaller than 1000 pixels */
    /* ALL the spacing inbetween everything except the form labels is set to 22px. 
        The text "Distributor Access has a taller line hieght so it may look off a little. The labels (username and password are set to ) 11px (1/2 the height) */

    @media (max-width: 1000px) {

        .dapic1-container {
            width: 322px;
            height: 180px;
        }

        .dapic1 {
            width: 322px;
            height: 180px;
        }

        .textcontainer {
            width: 322px;
            height: auto;
            background-color: white;
        }

            /* Create a 3D shadow at the top using ::before pseudo-element */
            .textcontainer::before {
                display: none;
            }

        .subtextcontainer {
            width: 280px;
            text-align: center;
            margin: 0 auto 0 auto;
        }

        .textcontainer h2 {
            color: rgb(11, 47, 91);
            font-size: 21px;
            margin-bottom: 10px;
            margin-top: 22px;
            font-weight: 400;
            line-height: 29.4px;
        }

        .subheader-container {
            width: 100%;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .subheader {
            color: rgb(97, 97, 97);
            font-size: 16px;
            font-weight: 400;
            line-height: 25.6px;
            width: 220px;
            text-align: center;
            margin: 0 auto 38px auto;
        }


        .subheader-invalid {
            font-size: 16px;
            color: red;
            font-weight: 400;
            margin-bottom: 0px;
            top: 45px;
            width: 280px;
            position: absolute;
            text-align: center;
        }

        .subheader-attempts {
            font-size: 16px;
            color: red;
            font-weight: 400;
            margin-bottom: 0px;
            top: 45px;
            width: 280px;
            position: absolute;
            text-align: center;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 0px;
            align-items: flex-start;
            font-weight: 400;
        }

            .login-form label {
                font-size: 16px;
                margin-bottom: 22px;
                display: flex;
                flex-direction: row;
            }

            .login-form input {
                background-color: transparent;
                margin-bottom: 4px;
                margin-top: 7px;
                padding: 0px 2px 2px 2px;
                font-size: 15px;
                border: none;
                border-bottom: 1px solid black;
                width: 276px;
                outline: none;
                -webkit-appearance: none;
                border-radius: 0;
                appearance: none;
            }

                .login-form input:hover {
                    border: none;
                    border-bottom: 2px solid black;
                    -webkit-appearance: none;
                }

                .login-form input:focus,
                .login-form input.filled {
                    border: none;
                    border-bottom: 2px solid black !important;
                    -webkit-appearance: none;
                }

            .login-form button {
                background-color: rgb(11, 47, 91);
                color: rgb(218, 218, 218);
                margin-top: 0px;
                padding-top: 9px;
                padding-bottom: 9px;
                font-size: 20px;
                font-weight: 400;
                border: none;
                cursor: pointer;
                width: 280px;
                margin-bottom: 22px;
                border-radius: 8px;
            }

        .subtextcontainer a {
            text-decoration: none;
            color: rgb(11,47,91);
            font-size: 16px;
            margin-bottom: 22px !important;
            display: block;
        }

        .custom-control-input {
            display: none;
        }

        .passwordbox {
            height: 20px;
        }

        .forgot-link {
            font-size: 16px;
            font-weight: 400;
            margin-left: 70px;
            height: 20px;
            color: rgb(11, 47, 91);
            cursor: pointer;
            white-space: nowrap;
        }

        .password-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .toggle-password {
            position: absolute;
            right: 10px;
            cursor: pointer;
            border: none;
            background: transparent;
            top: 8.5px;
            right: 0px;
        }

        input[type='password']::-webkit-textfield-decoration-container,
        input[type='password']::-webkit-inner-spin-button,
        input[type='password']::-webkit-outer-spin-button,
        input[type='password']::-ms-reveal,
        input[type='password']::-ms-clear {
            display: none;
        }

        input[type='password'] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        /* The Modal (background) */
        .modal {
            display: none;
            position: fixed;
            z-index: 4;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.5);
        }

        /* Modal Content */
        .modal-content {
            background-color: white;
            margin: 30vh auto auto auto;
            padding: 19.25px;
            border: 1px solid black;
            width: 281px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transform: translateY(-50%);
            font-weight: 400;
        }

            .modal-content h2 {
                color: rgb(11, 47, 91);
                font-size: 21px;
                margin-bottom: 10px;
                margin-top: 0px;
                font-weight: 400;
            }

            .modal-content p {
                color: rgb(97, 97, 97);
                font-size: 16px;
                font-weight: 400;
                width: 220px;
                text-align: center;
                margin: 0 auto 30px auto;
            }

            .modal-content label {
                font-size: 16px;
                margin-bottom: 20px;
                display: flex;
                flex-direction: row;
            }

            .modal-content input {
                background-color: transparent;
                margin-bottom: 4px;
                padding: 0px 2px 2px 2px;
                font-size: 15px;
                border: none;
                border-bottom: 1px solid black;
                width: 276px;
                outline: none;
                -webkit-appearance: none;
                border-radius: 0;
                appearance: none;
            }

                .modal-content input:hover {
                    border: none;
                    border-bottom: 2px solid black;
                    -webkit-appearance: none;
                }

                .modal-content input:focus,
                .modal-content input.filled {
                    border: none;
                    border-bottom: 2px solid black !important;
                    -webkit-appearance: none;
                }

        /* The Close Button */
        .close {
            color: black;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

            .close:hover,
            .close:focus {
                color: black;
                text-decoration: none;
                cursor: pointer;
            }

        .modal button {
            background-color: rgb(11, 47, 91);
            color: rgb(218, 218, 218);
            margin-top: 0px;
            padding-top: 9px;
            padding-bottom: 9px;
            font-size: 20px;
            font-weight: 400;
            border: none;
            cursor: pointer;
            width: 280px;
            margin-bottom: 20px;
            border-radius: 8px;
        }
    }
