/* assets/css/login.css */

:root {
    --primary-color: #34495e;
    --primary-hover: #2c3e50;
    --text-color: #34495e;
    --border-color: #bdc3c7;
    --white: #fff;
    --body-bg: #eef2f5;
    --danger-bg: #f8d7da;
    --danger-color: #721c24;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--body-bg);
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.login-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.welcome-text {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

.form-group.options {
    display: flex;
    justify-content: flex-end;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

.form-group button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-group button:hover {
    background-color: var(--primary-hover);
}

.error-banner {
    background-color: var(--danger-bg);
    color: var(--danger-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
}


.login-image-container {
    flex: 1.5;
    /* background-color: var(--primary-color); */
    /* background: linear-gradient(45deg, #007bff, #0056b3); */
    /* You can add a background image like this:
    background-image: url('../images/your-image.jpg');
    background-size: cover;
    background-position: center;
    */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    background-color: var(--light-bg); /* Use a light grey from the new palette */
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* max-width: 50%; */
    /* height: auto; */
    /* border-radius: 15px; */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.2); */
}


/* Responsive Styles */
@media (max-width: 992px) {
    .login-image-container {
        display: none;
    }
    .login-form-container {
        /* background-color: var(--body-bg); */
        flex: auto;
    }

    .login-container {
        flex-direction: column;
        width: 90%;
        max-width: 450px;
    }
} 