﻿:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --background-light: #F8F9FA;
    --text-dark: #212529;
    --text-light: #FFFFFF;
    --border-color: #DEE2E6;
    --border-radius: 8px;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-light);
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.visual-panel {
    flex: 1;
    position: relative;
    color: var(--text-light);
    isolation: isolate;
    /* These ensure the dynamic image displays correctly */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .visual-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /*background: rgba(0, 0, 0, 0.45);*/
        z-index: 1;
    }

.visual-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 20px;
    max-width: 80%;
}

    .visual-content h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .visual-content p {
        font-size: 1.2rem;
        opacity: 0.9;
    }


.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--text-light);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 30px;
    display: block;
}

/* Ensure images inside the form (like the logo) are handled well */
.logo-section .logo {
    max-width: 180px;
    margin-bottom: 2rem;
}

/* Add styling for validation messages if you use them */
.text-danger {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--text-dark);
        font-size: 1.2rem;
    }

    .form-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        font-size: 1.5rem;
        transition: border-color 0.3s, box-shadow 0.3s;
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.remember-me {
    color: var(--text-dark);
    user-select: none;
}

    .remember-me input {
        margin-right: 5px;
        vertical-align: middle;
    }

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

    .forgot-password-link:hover {
        color: #0056b3;
    }

.login-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

    .login-button:hover {
        background-color: #0056b3;
    }

.login-footer {
    width: 100%;
    max-width: 480px;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.8rem;
}

    .login-footer p {
        margin: 5px 0;
    }

    .login-footer a {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .login-footer a:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .visual-panel {
        flex: unset;
        height: 200px;
    }

    .visual-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 90%;
    }

    .visual-content h1 {
        font-size: 1.8rem;
    }

    .visual-content p {
        font-size: 1rem;
    }

    .login-panel {
        flex: 1;
        padding: 40px 20px;
    }

    .login-card {
        padding: 0;
        max-width: 100%;
    }

    .login-footer {
        max-width: 100%;
    }
}
