        /* Base Reset */
        body,
        html {
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #F8F7F3;
        }

        /* Layout */
        .split-screen {
            display: flex;
            height: 100vh;
        }

        /* Left Panel (Background Image) */
        .left-panel {
            flex: 5.5;
            /* Remove the background URL line from here */
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover; 
            
            border-top-right-radius: 80px; 
            overflow: hidden; 
            
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            padding: 2rem;
            position: relative;
        }

        /* Dark overlay for better text readability (optional, based on image brightness) */
        .left-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* Increase 0.2 to 0.4 or 0.5 if the text is still hard to read */
            background: rgba(0, 0, 0, 0.3); 
            border-top-right-radius: 80px;
            z-index: 1;
        }

        .left-content {
            z-index: 2;
        }

        .left-content img.logo {
            max-width: 250px;
            margin-bottom: 20px;
        }

        .left-content h1 {
            font-size: 2rem;
            margin: 0 0 10px 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .left-content p {
            font-size: 1rem;
            max-width: 400px;
            line-height: 1.5;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
            font-weight: 500;
        }

        /* Right Panel (Login Form) */
        .right-panel {
            flex: 4.5;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .login-card {
            background: white;
            padding: 3rem 2.5rem;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            width: 100%;
            max-width: 340px;
            text-align: center;
        }

        .login-card h2 {
            color: #5C3A21;
            font-size: 1.4rem;
            margin: 0 0 5px 0;
            font-weight: 800;
        }

        .login-card p.subtitle {
            color: #888;
            font-size: 0.85rem;
            margin-bottom: 30px;
        }

        .form-group {
            text-align: left;
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: #5C3A21;
            font-weight: 700;
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1.5px solid #5C3A21;
            border-radius: 8px;
            box-sizing: border-box;
            font-size: 0.95rem;
            outline: none;
        }

        .form-group input:focus {
            box-shadow: 0 0 0 2px rgba(92, 58, 33, 0.2);
        }

        .login-btn {
            background-color: #5C3A21;
            color: white;
            border: none;
            padding: 12px 45px;
            border-radius: 25px;
            font-size: 1rem;
            cursor: pointer;
            font-weight: bold;
            margin-top: 10px;
            transition: background 0.3s ease;
        }
        .forgotpass {
            color: #5C3A21;
            border: none;
            padding: 12px 45px;
            border-radius: 25px;
            font-size: 1rem;
            cursor: pointer;
            font-weight: bold;
            margin-top: 10px;
            transition: background 0.3s ease;
        }

        .forgotpass :hover {
             color: #666666;             
        }

        .login-btn:hover {
            background-color: #4A2F1A;
        }

        .help-text {
            font-size: 0.8rem;
            color: #888;
            margin-top: 30px;
        }

        .help-text a {
            color: #5C3A21;
            font-weight: bold;
            text-decoration: none;
        }

        .footer-text {
            position: absolute;
            bottom: 20px;
            font-size: 0.8rem;
            color: #5C3A21;
            font-weight: bold;
        }

        /* Error Messages */
        .messages {
            color: #d9534f;
            font-size: 0.9rem;
            margin-bottom: 15px;
            list-style-type: none;
            padding: 0;
            text-align: left;
        }

        /* ============================================================
   LOGIN PAGE RESPONSIVE
   ============================================================ */

@media screen and (max-width: 768px) {
    .split-screen {
        flex-direction: column;
        height: 100vh;
    }

    .left-panel {
        flex: 2;
        border-top-right-radius: 0;
        border-bottom-right-radius: 60px;
        padding: 1.5rem;
        min-height: 200px;
    }

    .left-panel::before {
        border-top-right-radius: 0;
        border-bottom-right-radius: 60px;
    }

    .left-content h1 {
        font-size: 1.5rem;
    }

    .left-content p {
        font-size: 0.8rem;
        max-width: 300px;
    }

    .left-content img.logo {
        max-width: 150px;
        margin-bottom: 10px;
    }

    .right-panel {
        flex: 3;
        padding: 20px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .login-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
        box-shadow: none;
    }

    .login-card h2 {
        font-size: 1.2rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 10px 30px;
        width: 100%;
    }

    .footer-text {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        padding-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .left-panel {
        flex: 1.5;
        min-height: 150px;
        border-bottom-right-radius: 40px;
    }

    .left-panel::before {
        border-bottom-right-radius: 40px;
    }

    .left-content h1 {
        font-size: 1.2rem;
    }

    .left-content p {
        font-size: 0.7rem;
        max-width: 250px;
    }

    .left-content img.logo {
        max-width: 100px;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-card h2 {
        font-size: 1rem;
    }
}