.desktop-login-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
        }

        .login-form .input-group {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
        }

        .login-form .input-group i {
            margin-right: 10px;
            color: #555;
        }

        .login-form .input-group input {
            border: none;
            outline: none;
            flex-grow: 1;
            font-size: 16px;
            padding: 5px 0;
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 18px;
            transition: background-color 0.3s ease;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
        }

        .btn-primary:hover {
            background-color: #0056b3;
        }

        .btn-full-width {
            width: 100%;
            display: block;
            margin-top: 20px;
        }

        .links {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
        }

        .links a {
            color: #007bff;
            text-decoration: none;
        }

        .links a:hover {
            text-decoration: underline;
        }

        .separator {
            margin: 0 10px;
            color: #ccc;
        }

        .signup-link {
            font-size: 20px !important; /* Override default font size */
        }

        /* Mobile Login Button (hidden on desktop) */
#mobileLoginTrigger {
    display: none; /* Hidden by default, shown on mobile */
    padding: 15px 30px;
    font-size: 18px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if content overflows */
    background-color: rgba(0,0,0,0.8); /* Darker background for fullscreen focus */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    /* Remove fixed width/max-width on desktop for full control on mobile */
    padding: 30px;
    border-radius: 8px; /* Still apply rounded corners, but might be less noticeable fullscreen */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInScale 0.3s ease-out forwards; /* Simple animation */

    /* Important for mobile fullscreen appearance within the flex container */
    width: 90%; /* Start with a responsive width */
    max-width: 500px; /* Still prevent it from getting too wide on larger screens */
    margin: auto; /* Ensure it stays centered */
}

.close-button {
    color: #aaa;
    float: right; /* Float right within the modal-content */
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .desktop-login-container {
        display: none; /* Hide desktop form on mobile */
    }

    #mobileLoginTrigger {
        display: block; /* Show mobile login button */
    }

    .modal {
        /* On mobile, make modal truly fullscreen */
        width: 100vw; /* Viewport width */
        height: 100vh; /* Viewport height */
        top: 0;
        left: 0;
        margin: 0; /* Remove any default margins */
        border-radius: 0; /* No rounded corners for fullscreen */
        background-color: #fff; /* White background for a clean fullscreen look */
        padding: 0; /* Remove padding from the modal overlay itself */
        display: flex; /* Ensure flex for centering its content */
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        /* On mobile, the content fills most of the screen within the modal */
        width: 100%; /* Full width of the modal (which is now fullscreen) */
        height: 100%; /* Full height of the modal */
        max-width: none; /* Override max-width set for desktop */
        max-height: none; /* Allow content to use full height */
        border-radius: 0; /* No rounded corners for content when modal is fullscreen */
        box-shadow: none; /* No shadow for fullscreen */
        padding: 20px; /* Padding for the form inside the fullscreen modal */
        overflow-y: auto; /* Enable scrolling if content overflows */
        display: flex; /* Make content itself a flex container */
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Center form vertically */
    }

    .modal-content h2 {
        text-align: center;
        margin-top: 20px; /* Space from top */
        margin-bottom: 30px;
    }

    .modal-content .links {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    /* Adjust close button for fullscreen mobile modal */
    .close-button {
        position: fixed; /* Fix to viewport */
        top: 15px;
        right: 15px;
        z-index: 1001; /* Ensure it's above the modal content */
        color: #333; /* Make it clearly visible on white background */
    }
}

/* Animation for modal */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Login Container */
.login-container {
	margin-top: 1%;
  margin-left: 10%;
  margin-right: 10%;
}

/* Login Card */
.login-card {
    height: 85vh;
    background-color: var(--card-background);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-unit) * 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* More prominent shadow for a central element */
    text-align: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit) / 2;
}

.tagline {
    font-size: 1rem;
    color: var(--text-color-medium);
    margin-bottom: var(--spacing-unit) * 1.5;
}

/* Form Styling */
.login-form {
    margin-bottom: var(--spacing-unit) * 1.5;
}

.input-group {
	text-align:center;
    position: relative;
    margin-bottom: var(--spacing-unit);
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-button); /* Pill shape for input group */
    padding: 10px 15px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-group i {
    color: var(--text-color-light);
    margin-right: 10px;
    font-size: 1.1rem;
}

.input-group input {
	text-align:center;
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color-dark);
    padding: 2px 0; /* Adjust vertical padding within the group */
}

.input-group input::placeholder {
    color: var(--text-color-light);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Buttons (reusing styles from social_network_home_css) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px; /* Slightly larger padding for login buttons */
    border: none;
    border-radius: var(--border-radius-button);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-out, box-shadow 0.2s ease-in-out;
    font-weight: 600;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.35); /* Stronger shadow on hover */
}

.btn-full-width {
    width: 30%;
    margin-bottom: var(--spacing-unit);
}

/* Links */
.links {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    margin-top: var(--spacing-unit);
    color: var(--text-color-medium);
}

.links a {
    color: var(--primary-color);
    margin: 0 8px;
}

.links .separator {
    color: var(--border-color);
}

/* Social Login Options */
.social-login-options {
    margin-top: var(--spacing-unit) * 1.5;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-unit) * 1.5;
}

.social-login-options p {
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-unit);
}

.social-buttons {
    display: flex;
    flex-direction: column; /* Stack social buttons by default */
    gap: var(--spacing-unit) / 2;
}

.btn-social {
    color: white;
    padding: 10px 15px;
    font-size: 0.95rem;
    border-radius: var(--border-radius-small);
}

.btn-social i {
    margin-right: 8px;
}

.btn-facebook {
    background-color: #3b5998; /* Facebook blue */
}

.btn-facebook:hover {
    background-color: #3b5998;
    filter: brightness(1.1);
}

.btn-google {
    background-color: #dd4b39; /* Google red */
}

.btn-google:hover {
    background-color: #dd4b39;
    filter: brightness(1.1);
}

/* --- Responsive Design --- */
@media (min-width: 600px) {
    .social-buttons {
        flex-direction: row; /* Arrange social buttons side-by-side on wider screens */
        justify-content: center;
    }
    .btn-social {
        flex: 1; /* Allow buttons to grow and share space */
        max-width: 180px; /* Limit width for larger screens */
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: var(--spacing-unit); /* Reduce padding on very small screens */
    }

    .logo {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .input-group {
        padding: 8px 12px;
    }

    .input-group input {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .links {
        flex-direction: column;
        gap: 5px;
    }

    .links .separator {
        display: none; /* Hide separator when links stack */
    }
}