        /* Basic Reset & Body Styling - Consistent with reg.html */
        body {
            margin: 0;
            padding: 0;
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #a8c0ff, #3f2b96);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: #333;
            overflow: hidden; /* Hide any potential body scrollbar */
        }

        /* Container for the form - Consistent with reg.html */
        .login-container {
            background-color: #fff;
            padding: 30px; /* Slightly adjusted for login form, as it's shorter */
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 450px; /* Narrower for login form */
            box-sizing: border-box;
            animation: fadeIn 1s ease-out;
            display: flex;
            flex-direction: column;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        h2 {
            text-align: center;
            color: #3f2b96;
            margin-bottom: 30px; /* Standard margin */
            font-weight: 600;
            font-size: 2rem;
        }

        /* Form Group with Icon */
        .form-group {
            margin-bottom: 20px; /* Standard margin for spacing */
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #555;
            font-size: 1rem;
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon input[type="text"],
        .input-with-icon input[type="password"] {
            width: 100%;
            padding: 12px 12px 12px 40px; /* Padding for icon */
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            box-sizing: border-box;
            transition: border-color 0.3s ease;
        }

        .input-with-icon input[type="text"]:focus,
        .input-with-icon input[type="password"]:focus {
            border-color: #3f2b96;
            outline: none;
            box-shadow: 0 0 0 3px rgba(63, 43, 150, 0.2);
        }

        .input-with-icon .icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
            font-size: 1.1rem;
        }

        /* Captcha Styling - Consistent with reg.html */
        .captcha-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .captcha-group .form-group { /* Nested form-group for input within captcha-group */
            margin-bottom: 10; /* Reset margin for inner form-group */
            flex-grow: 1;
        }

        .captcha-group .form-group label {
            margin-bottom: 0;
        }

        .captcha-group .input-with-icon input {
             padding-left: 12px; /* Remove icon padding for captcha input */
        }


        .captcha-display {
            background-color: #e0e0e0;
            border: 1px dashed #aaa;
            border-radius: 8px;
            padding: 1px 15px; /* Slightly larger for readability */
            font-size: 1.5rem;
            font-weight: 700;
            color: #333;
            letter-spacing: 3px;
            position: relative;
            overflow: hidden;
            flex-grow: 1;
            text-align: center;
            min-width: 120px; /* Ensure captcha display has a minimum width */
        }

        .captcha-display::before,
        .captcha-display::after {
            content: '';
            position: absolute;
            width: 120%;
            height: 2px;
            background-color: rgba(0, 0, 0, 0.3);
            transform: rotate(-10deg);
            top: 40%;
            left: -10%;
        }

        .captcha-display::after {
            transform: rotate(10deg);
            top: 60%;
            left: -10%;
        }

        .refresh-captcha {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.8rem;
            color: #3f2b96;
            transition: color 0.3s ease;
        }

        .refresh-captcha:hover {
            color: #5d48bf;
        }

        /* Button Styling - Consistent with reg.html */
        .login-button {
            padding: 15px 25px;
            background: linear-gradient(45deg, #3f2b96, #a8c0ff);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block;
            width: 100%;
            margin-top: 20px;
        }

        .login-button:hover {
            background: linear-gradient(45deg, #5d48bf, #c1d9ff);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .login-button:active {
            transform: translateY(0);
        }

        /* Links */
        .links {
            text-align: center;
            margin-top: 25px;
            font-size: 0.95rem;
        }

        .links a {
            color: #3f2b96;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .links a:hover {
            color: #5d48bf;
            text-decoration: underline;
        }

        .links span {
            margin: 0 10px;
            color: #777;
        }

        /* Error Message Styling */
        .error-message {
            color: #e74c3c;
            font-size: 0.85rem;
            margin-top: 5px;
            display: none; /* Hidden by default */
        }

        /* Responsive Design */
        @media (max-width: 600px) {
            .login-container {
                padding: 25px;
                margin: 20px;
                max-width: 90%;
            }
            h2 {
                font-size: 1.8rem;
                margin-bottom: 25px;
            }
            .form-group {
                margin-bottom: 15px;
            }
            .input-with-icon input {
                padding: 10px 10px 10px 35px;
            }
            .input-with-icon .icon {
                font-size: 1rem;
                left: 10px;
            }
            .captcha-display {
                padding: 8px 10px;
                font-size: 1.3rem;
                min-width: 100px;
            }
            .refresh-captcha {
                font-size: 1.6rem;
            }
            .login-button {
                padding: 12px 20px;
                font-size: 1rem;
                margin-top: 15px;
            }
            .links {
                font-size: 0.9rem;
            }
        }
