/*
========================================
MODERN LOGIN PAGE STYLES
========================================
*/

:root {
    --clr-primary: #B72126;
    --clr-primary-dark: #9e1c20;
    --clr-text-primary: #2c3e50;
    --clr-text-secondary: #888ea8;
    --clr-bg-page: #f0f2f5;
    --clr-bg-card: #ffffff;
    --clr-border: #e0e6ed;
    --radius: 1.5rem;
    --shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

body {
	width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--clr-bg-page);
    color: var(--clr-text-primary);
}

/* --- Main Layout Container --- */
.login-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;/**/
    padding: 50px 0 100px 0;
}

/* --- Login Card: The main component --- */
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.login-card {
    display: flex;
    width: 100%;
    max-width: 1500px;
    background: var(--clr-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out forwards;
}

/* --- Image Panel (Left Side) --- */
.login-image-panel {
    flex-basis: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}
.login-image-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.image-overlay-text {
    position: relative;
    z-index: 1;
    color: white;
}
.image-overlay-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.image-overlay-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}


/* --- Form Panel (Right Side) --- */
.login-form-panel {
    flex-basis: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4.5rem;
}
.form-content { width: 100%; }

.form-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--clr-text-primary);
}
.form-content p {
    color: var(--clr-text-secondary);
    margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-primary);
    margin-bottom: 0.5rem;
    display: block;
}
.input-group { position: relative; }
.input-group i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-secondary);
    transition: color .2s;
}
.input-group input:focus + i { color: var(--clr-primary); }


.form-control {
    width: 100%;
    height: 52px;
	padding-left: 15px;
    padding-right: 15px;
    border: 1px solid var(--clr-border);
    border-radius: 0.5rem;
    background: #fdfdfd;
    font-size: 1rem;
    transition: all 0.2s ease-out;
}
.login-card .form-control {
    padding-left: 45px; /* Space for the icon */
}
.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(183, 33, 38, 0.1);
}
.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: 0.8rem; color: #dc3545; display: block; margin-top: 0.25rem; }

/* --- Button & Links --- */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(45deg, var(--clr-primary-light), var(--clr-primary));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all .25s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
}

.links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.links a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.links a:hover { text-decoration: underline; color: var(--clr-primary-dark); }
.links span { margin: 0 0.5rem; color: var(--clr-text-secondary); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .login-card { flex-direction: column; }
    .login-image-panel {
        flex-basis: auto;
        height: 250px;
    }
    .login-form-panel {
        padding: 3rem 2rem;
    }
}
@media (max-width: 576px) {
    .login-page-container { padding: 0; }
    .login-card {
        border-radius: 0;
        min-height: 100vh;
    }
    .login-image-panel {
        height: 200px;
        justify-content: center;
        padding: 2rem;
    }
    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}