﻿/* ============================
   DESKTOP (1024px+)
   ============================ */
.login-card {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 560px;
    background: #b8c6b3;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    margin: 20px auto;
    overflow: hidden;
}

.login-content {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
}

    .login-content h1 {
        margin-bottom: 16px;
        color: #2f2b25;
        font-size: 2.4rem;
        font-weight: 800;
    }

    .login-content label {
        display: block;
        margin-bottom: 4px;
        font-weight: 600;
        font-size: 0.9rem;
        color: #444;
    }

    .login-content input {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 6px;
        border-radius: 8px;
        border: 1px solid #d0d0d0;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

    .login-content input:focus {
        outline: none;
        border-color: #315a35;
        box-shadow: 0 0 0 1px rgba(49, 90, 53, 0.25);
    }

    .login-content button[type="submit"] {
        width: auto;
        padding: 10px 32px;
        background-color: #315a35;
        color: #fff;
        border: none;
        border-radius: 999px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
        display: block;
        margin: 16px auto 10px;
        width: auto;
    }

    .login-content button[type="submit"]:hover {
        background-color: #3f6f43;
        transform: translateY(-1px);
    }

    .login-content p {
        text-align: center;
        font-size: 0.85rem;
        margin-top: 6px;
        color: #666;
    }

        .login-content p a {
            color: #315a35;
            font-weight: 600;
            text-decoration: underline;
            font-size: 0.85rem;
        }

            .login-content p a:hover {
                text-decoration: underline;
            }


.login-image {
    flex: 0 0 70%;
    height: 100%;
    position: relative;
}

    .login-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.forgot-password {
    text-align: center; /* not centered */
    margin-top: 2px; /* closer to password */
    margin-bottom: 16px;
}

    .forgot-password a {
        font-size: 0.8rem; /* smaller text */
        font-weight: 600;
        color: #315a35;
    }



/* ============================
   MOBILE (0–767px)
   ============================ */
@media (max-width: 767px) {

    /* Make entire login screen fullscreen */
    .login-card {
        flex-direction: column;
        justify-content: center; /* vertical center */
        align-items: center; /* horizontal center */
        height: 100vh;
        background-image: url('/img/loginRegister.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        padding: 0 20px;
    }

        /* Soft dark overlay */
        .login-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 1;
        }

    /* Centered login form */
    .login-content {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 380px;
        text-align: center;
        background: none;
        padding: 20px 0;
    }

        /* White text */
        .login-content h1,
        .login-content label,
        .login-content p,
        .login-content a {
            color: #fff;
        }

        /* Inputs: translucent */
        .login-content input {
            background: rgba(255,255,255,0.85);
            border: none;
        }

        /* Full width button */
        .login-content button[type="submit"] {
            width: 100%;
        }

    /* Hide the right image container */
    .login-image {
        display: none;
    }

    /* Make small text & links readable on mobile */
    .login-content p,
    .login-content p a,
    .forgot-password a {
        color: #f5e6c8 !important; /* force white */
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        font-weight: 600;
    }

    .forgot-password {
        margin-top: 4px;
        margin-bottom: 12px;
    }
}



/* ============================
   TABLET (768–1023px)
   ============================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .login-card {
        flex-direction: row;
        max-width: 900px;
        min-height: 500px;
    }

    .login-content {
        flex: 0 0 40%;
        padding: 40px 32px;
    }

    .login-image {
        flex: 0 0 60%;
        height: auto;
    }
}

