﻿/* For larger screens (above md), apply background only to the left side */
@media (min-width: 1076px) {
    .login-hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    

    .login-left {
        background-image: url('/bg3.png'); /* Replace with correct image path */
        background-size: cover;
        background-position: center;
        height: 100vh; /* Full height of the left side */
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        padding: 20px;
        flex-direction: column;
    }

    .login-left h1, .login-left p {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .login-left .title {
        color: var(--color-text-light);
        font-size: 3.5rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        margin-bottom: 1.5rem;
    }

    .login-left .subtitle {
        color: var(--color-text-light);
        font-size: 1.5rem;
        font-weight: 400;
        max-width: 80%;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    }

    .login-box {
        max-width: 450px;
    }
}

/* For smaller screens (below md), apply background to the whole page */
@media (max-width: 1076px) {
    .login-hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        background-image: url('/bg3.png'); /* Full-page background image */
        background-size: cover;
        background-position: center;
    }

    .login-left {
        height: auto;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
        background: none; /* Remove the background for smaller screens */
    }

    .columns {
        flex-direction: column; /* Stack left content on top and form below */
    }

    .login-left .title {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        font-size: 2rem;
    }

    .login-left .subtitle {
        max-width: 100%;
        margin-top: 1rem;
        color: #211e1e;
    }

    .login-box {
        max-width: 80%;
    }
}

/* Login Box Styles */
.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(50,50,93,0.1), 0 5px 15px rgba(0,0,0,0.07);
    padding: 2.5rem;
    transition: transform 0.3s;
    margin: 0 auto;
}


/* Button Styling */
.button.is-login {
    background: #1c1c1c;
    color: var(--color-text-light);
    font-weight: 600;
    height: 3rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    transition: all 0.3s;
}

.button.is-login:hover {
    background: #0d0d0d;
    box-shadow: 0 4px 12px rgba(74,124,89,0.3);
}

/* Responsive adjustments for the form on small screens */
@media (max-width: 1076px) {
    /* Adjust the login box for mobile */
    /*.login-box {
        margin: 0 1rem;
    }*/

    .login-left .title {
        font-size: 2rem;
    }

    .login-left .subtitle {
        font-size: 1.2rem;
    }

    .login-box .input {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .login-box .button.is-login {
        font-size: 1rem;
    }
}

/* General Styles */
.forgot-password {
    font-size: 0.9rem;
    text-align: right;
    display: block;
    margin-top: 0.5rem;
    color: var(--color-accent);
}

.notification.is-warning {
    background: #feeccd;
    color: #946c00;
    border-radius: var(--radius);
}

.label {
    font-weight: 300;
    color: var(--color-text-dark);
}

.login-hero .image img {
    max-height: 85px;
}

@media (max-width: 550px) {
    .login-box {
        max-width: 340px; /* take full width */
        /*margin: 0 10px;*/ /* add small side margin */
        /*padding: 1rem;*/ /* reduce padding further */
    }

/*    .login-hero {        
        background-size:contain;
        background-repeat: no-repeat;
        min-height:100vh;
    }*/
}
@media (max-width: 350px) {
    .login-box {
        max-width: 260px; /* take full width */
       
    }   
}