﻿body {
    display: block;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    background-color: slategray;
    margin: 0;
    min-height: 100vh;
}

.master-container {
    top:100px;
    display: block ;
    flex-direction: column;
    justify-items: center;
    justify-content: space-evenly;   
    border-radius: 12px;
    resize: both;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
}

.header {
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: row;
    margin: 2px;
    padding-left: 8%;
    color: rgba(255, 255, 255, 0.637);
    border-bottom: solid 1.5px white;
    font-family: Arial, Helvetica, sans-serif;
}

.content {
    /* Was fit-content; now set to a flexible 100% width and auto height */
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    background-color: black;
    background-image: linear-gradient(#4b3681, #d7c9fc);
}

.middle-left {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px;
}

.middle-right {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px;
    padding-top: 22px;
}

.login-form {
    height: 400px;
}

/* The login panel container */
#pnlLog {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: black;
    background-color: rgba(255, 255, 255, 0.258);
    padding: 20px;
    border: solid rgba(255, 255, 255, 0.434) 1px;
    border-radius: 8px;
    height: 100%;
    width: 500px; /* let it size itself up to max-width */
    min-width: 260px; /* do not shrink below 260px */
    max-width: 460px; /* do not grow beyond 460px */
    box-sizing: border-box;
    margin: 12px;
}

.errMsg {
    display: flex;
    height: 4px;
    flex-wrap: wrap-reverse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #fd1d1d;
    position: relative;
    text-align: left !important;
    top: -10px;
    left: -45px;
    box-sizing: border-box;
}

#img-person-logo {
    height: 25px !important;
    width: 25px !important;
}

#pnlLog h4 {
    font-size: 16px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
}

#pnlLog .RadLabel {
    display: inline;
    text-align: center;
    height: 10px;
    font-size: 12px;
}

/* Outer wrapper of the inputs */
#pnlLog .RadInput {
    margin: 10px 0;
    display: block;
    height: 25px;
    width: 360px; /* Increased from 270px to make inputs wider */
    border-radius: 4px;
    background-color: transparent;
    box-sizing: border-box;
}

    /* The actual text box inside the RadInput */
    #pnlLog .RadInput input.riTextBox {
        border: none !important;
        text-align: center;
        border-radius: 8px !important;
        height: 100% !important;
        padding: 0 8px !important;
        margin: 0 !important;
        font-size: 10px;
        width: 300px;
        position: relative;
        right: 50px;
        box-sizing: border-box;
        outline: none;
    }

    #pnlLog .RadInput input[type="hidden"] {
        display: none;
    }

.middle-right img {
    height: 400px;
    width: 400px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.582);
}

.footer {
    color: white;
    background-color: #d7c9fc;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: solid 1px white;
    font-size: 10px;
}

.submission-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

    .submission-buttons a {
        color: white;
        background-image: linear-gradient(#4B3092, #4b3681);
        border: 1px solid white;
        margin: 6px;
        border-radius: 12px;
        padding: 0.5rem 1rem;
        text-decoration: none;
        text-align: center;
        display: block;
        width: 200px;
        box-sizing: border-box;
        transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    }

        .submission-buttons a:hover {
            text-decoration: none;
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.8);
            transform: scale(1.05);
        }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .middle-left, .middle-right {
        margin: 12px;
    }

        .middle-right img {
            width: 100%;
            max-width: 400px;
            height: auto;
        }


    #pnlLog {
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 480px) {
    #pnlLog {
        padding: 1rem;
    }

    .middle-right img {
        max-width: 94%;
    }

    .footer {
        font-size: 0.65rem;
    }
}
