﻿body {
    display: flex;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
}

/* Left image */
.left {
    flex: 3;
    /*             background: #f2f4f8;
             */ overflow: hidden;
}

    .left img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

/* Right login box */
.right {
    flex: 1;
    /*             background: #f2f4f8;
             */ display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 35px;
    border-radius: 50px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

    .login-box img.logo {
        width: 160px;
        margin-bottom: 15px;
    }

    .login-box h2 {
        font-size: 26px;
        margin-bottom: 8%;
    }

    .login-box p {
        font-size: 13px;
        color: #555;
        margin-bottom: 20px;
    }

    .login-box button.submit {
        width: 100%;
        padding: 12px;
        background: black;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        margin-top: 10px;
    }

    .login-box a {
        display: block;
        margin-top: 20px;
        font-size: 12px;
        color: #333;
        text-decoration: none;
    }

.footer {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    font-weight: bolder;
}

.social-media {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/* Mobile: hide left side */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .left {
        display: none;
    }

    .right {
        flex: unset;
        width: 100%;
        height: 100vh;
    }

    .login-box {
        margin: auto;
    }
}



.extra-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 45px;
    font-size: 12px;
    color: #333;
}

/* icon row */
.extra-icons img {
    height: 24px; /* keep them small */
    width: auto;
    margin-right: 8px; /* spacing between icons */
}

.extra-text {
    text-align: right;
    flex: 1;
}

.extra-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    color: #333;
}

.extra-left img {
    max-height: 30px; /* adjust size */
    width: auto;
}

/* reset for icons row */
.extra-inline a {
    margin: 0; /* override the login-box a margin */
    display: inline-block;
}


.extra-right {
    text-align: right;
    flex: 1;
    padding-left: 10px;
}


[data-bs-theme=dark] {

    body {
        color: #e8e6e3;
        background-color: #181a1b;
        background-image: none !important;
    }


    .login-box {
        background-color: #181a1b;
        background-image: none;
        box-shadow: rgba(0, 0, 0, 0.6) 0px 4px 20px;
    }


        .login-box p {
            color: #b2aca2;
        }

        .login-box a {
            color: #c8c3bc;
            text-decoration-color: currentcolor;
        }

    .form-control {
        color: #e8e6e3;
        background-color: #181a1b;
        border: 1px solid #383d3f;
    }


    .footer {
        color: #a8a095;
    }

    .extra-inline {
        color: #c8c3bc;
    }


    div:where(.swal2-container) div:where(.swal2-popup) {
        border-color: currentcolor;
        background-color: var(--darkreader-background-ffffff, #181a1b);
        background-image: none;
        color: var(--darkreader-text-545454, #b3aca2);
    }
}
