:root {
    --brand-red: #e53e3e; 
    --brand-red-hover: #c53030;
    --bg-light: #fdfdfd;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --input-bg: #f3f4f6;
}

body {
    background-color: #f9fafb; /* Light neutral background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
}

.container {
    max-width: 1000px;
}

/* Centering Wrapper */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc; /* Very light gray background */
}

/* Card Styling */
.main-auth-card {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff;
}

/* Image Handling */
.login-image-container {
    height: 100%;
    min-height: 600px; /* Ensures the image side has good height */
}

.login-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glassmorphism Effect for the Card */
.card {
   border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.card-body {
    padding: 0;
}

.login-image {
    padding: 0;
}

.login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.login-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.login-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}
/* Form Section */
.login-content {
    background: white;
    padding: 4rem 3.5rem !important;
}

.welcome-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}
/* Modern Inputs (Soft Corners) */
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-user {
    background-color: var(--input-bg) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 1.25rem 1rem !important;
    height: auto !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease;
}

.form-control-user:focus {
    background-color: #fff !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password:focus {
    outline: none;
    color: var(--primary-dark);
}

/* Red Accent Primary Button */
.btn-primary {
    background-color: var(--brand-red) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0.8rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-top: 1rem;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background-color: var(--brand-red-hover) !important;
    transform: translateY(-1px);
}

/* Google Button (Outline style) */
.btn-google {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

.divider {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.alert {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #9ae6b4;
    color: #276749;
}

.alert-error {
    background-color: #fed7d7;
    border-color: #feb2b2;
    color: #c53030;
}

/* Red accents for text */
.forgot-password, .signup-link {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password:hover {
    color: var(--brand-red-hover);
    text-decoration: underline;
}

/* Loader styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

/* Smooth Loader */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
}

/* Floating Animation for the Image (Optional) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .login-image {
        display: none;
    }

    .login-content {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .login-content {
        padding: 2rem 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}