        :root {
            --primary-color: #007bff; /* Bootstrap primary blue */
            --primary-dark: #0056b3; /* Darker shade for hover */
            --light-background: #e9ecef; /* A slightly darker light background */
            --text-color: #343a40;
            --secondary-text-color: #6c757d; /* For hints/links */
            --border-color: #ced4da;
            --focus-border-color: #80bdff; /* Bootstrap focus blue */
            --error-color: #dc3545;
            --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--light-background);
            color: var(--text-color);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px; /* Add some padding for smaller screens */
            box-sizing: border-box; /* Include padding in element's total width and height */
        }

        /* Container for the single form box */
        .form-container {
            background-color: #fff;
            padding: 3.5rem; /* Consistent padding */
            border-radius: 16px; /* Consistent rounded corners */
            box-shadow: var(--box-shadow);
            width: 100%; /* Take full width of its column */
            max-width: 450px; /* Max width for the form itself */
            margin: 0 auto; /* ADD THIS LINE to center the block horizontally */
            animation: fadeIn 0.8s ease-out; /* Subtle fade-in animation */
            display: flex; /* Use flex for internal content alignment */
            flex-direction: column; /* Stack content vertically */
            justify-content: center; /* Center content vertically within the box */
            align-items: center; /* Center content horizontally within the box */
            text-align: center; /* Center text within the box */
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-title {
            font-weight: 700;
            font-size: 2.2rem; /* Larger title */
            color: var(--primary-color); /* Title in primary color for emphasis */
            margin-bottom: 2.5rem; /* More space below title */
            text-align: center;
        }

        .form-group {
            margin-bottom: 1.5rem; /* More consistent spacing between form groups */
            width: 100%; /* Ensure form groups take full width within the form */
        }

        .form-group label {
            font-weight: 600; /* Slightly bolder labels */
            color: var(--text-color);
            margin-bottom: 0.6rem; /* Slightly increased margin below label */
            display: block; /* Ensures label takes its own line */
            text-align: left; /* Align labels to the left */
        }

        .form-control {
            border: 1px solid var(--border-color);
            border-radius: 8px; /* Slightly more rounded inputs */
            padding: 1.1rem 1.2rem; /* More generous padding inside inputs */
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            font-size: 1.05rem; /* Slightly larger text in inputs */
            width: 100%; /* Ensure inputs take full width */
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        .form-control:focus {
            border-color: var(--primary-color); /* Border color matches primary */
            box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.2); /* Softer, slightly larger focus shadow */
            outline: none; /* Remove default outline */
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            padding: 1rem 1.5rem; /* More vertical padding for the button */
            font-weight: 600; /* Bolder button text */
            font-size: 1.1rem; /* Slightly larger button text */
            width: 100%;
            border-radius: 8px; /* Match input border-radius */
            transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.2s ease;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Subtle button shadow */
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-2px); /* Slight lift on hover */
            box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* Enhanced shadow on hover */
        }

        .btn-primary:active {
            transform: translateY(0); /* Press effect */
            box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
        }

        .invalid-feedback {
            color: var(--error-color);
            margin-top: 0.5rem; /* Increased margin for better readability */
            font-size: 0.875rem; /* Standard smaller text for feedback */
            font-weight: 500;
            text-align: left; /* Align error messages to the left */
        }

        .alert-danger {
            background-color: #f8d7da; /* Lighter red for background */
            color: #721c24; /* Darker red for text */
            border-color: #f5c6cb;
            margin-bottom: 1.5rem; /* Consistent spacing */
            border-radius: 8px; /* Match other rounded elements */
            padding: 1rem 1.25rem; /* Bootstrap standard padding */
            font-size: 0.95rem;
            text-align: left; /* Align alert text to the left */
        }

        .login-link {
            margin-top: 2rem; /* More space above links */
            text-align: center;
            font-size: 0.95rem;
            color: var(--secondary-text-color);
        }

        .login-link a {
            color: var(--primary-color);
            text-decoration: none; /* Remove underline by default */
            font-weight: 500;
            transition: color 0.2s ease-in-out;
        }

        .login-link a:hover {
            color: var(--primary-dark);
            text-decoration: underline; /* Underline on hover for clarity */
        }

        /* Accessibility improvements */
        label {
            cursor: pointer;
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .form-container {
                padding: 2.5rem 1.5rem; /* Less padding on very small screens */
                /*margin: 15px; /* Ensure some margin on very small viewports */
            }
            .form-title {
                font-size: 1.8rem;
                margin-bottom: 2rem;
            }
        }

        /* Logo specific styles */
        .logo {
            max-width: 150px; /* Adjust logo size as needed */
            height: auto;
            margin-bottom: 2rem; /* Space below the logo */
        }
