/* Base styles */
body {
    margin: 0;
    padding: 0;
    background: #e9ecef; /* Simplified background for the body */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header Styles */
.page-header {
    background-color: #ffffff;
    /* REMOVED: margin-bottom: 20px; to bring hero section back up */
}

.header-logo {
    height: 45px; /* Adjust the height of your logo */
}

.scm-logo {
    height: 28px; /* Was 32px, now smaller */
}

/* START: New Hero Section Styles */
.hero-section {
    /* Added a dark semi-transparent overlay to dull the background image */
    background-image: linear-gradient(rgba(25, 42, 86, 0.6), rgba(25, 42, 86, 0.6)), url('../images/Visual.jpg');
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border-bottom: 1px solid #797b7c;
}

/* ADDED: To ensure the hero section content is aligned to the left */
.hero-section .container {
    text-align: left;
}

.hero-title {
    /* MODIFIED: Added Poppins font */
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    /* Changed color to white and added a shadow to make it pop */
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* END: New Hero Section Styles */


/* Login Container takes up remaining space */
.login-container {
    margin-top: 20px; /* Decreased from 40px to reduce the gap */
    display: flex;
    align-items: center; /* Vertically center the content row */
    width: 100%;
    position: relative;
    padding: 50px 0; /* Changed to vertical padding */
    min-height: 400px; /* Ensures space for content */
}

/* ADDED: Styles for the new description column */
.description-side {
    padding-right: 2rem;
    color: #343a40;
}

.description-title {
    font-family: 'Times New Roman', Times, serif; /* Changed font to Times New Roman */
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem; /* Added space for the list below */
}

/* START: Added styles for the new feature list */
.description-features {
    list-style: none;
    padding-left: 0;
    color: #343a40;
}

.description-features > li {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.4rem 0 0.4rem 2rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.description-features > li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #007bff;
    font-weight: bold;
}

.description-features ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.description-features ul li {
    font-size: 1rem;
    font-weight: 400;
    color: #495057;
    padding: 0.2rem 0 0.2rem 1.5rem;
    position: relative;
}

.description-features ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #6c757d;
    font-weight: bold;
}
/* END: Added styles for the new feature list */

.login-wrapper {
    width: 100%; /* Changed from 120% to 100% */
}

.login-card {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    background-color: rgba(255, 255, 255, 0.95);
    margin: 0 auto; /* Center the card within its column */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 0;
}

.card-body {
    padding: 20px 25px;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-weight: bold;
    padding: 10px;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert styles */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Responsive adjustments */
@media (max-width: 767px) { /* Changed to 767px to target stacking columns */
    .description-side {
        padding-right: 0;
        margin-bottom: 2rem; /* Add space between description and form on mobile */
        text-align: center;
    }

    .login-card {
        margin: 15px;
        border-radius: 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .card-header {
        padding: 20px;
    }

    .card-body {
        padding: 20px 15px;
    }
}