
    /* General container styling */
    .custom-auth-container {
        max-width: 400px;
        margin: 40px auto;
        padding: 24px;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }

    /* Logo styling */
    .custom-auth-logo {
        display: block;
        text-align: center;
        margin-bottom: 24px;
    }
    .custom-auth-logo img {
        max-width: 180px;
        height: auto;
        transition: transform 0.3s ease;
    }
    .custom-auth-logo:hover img {
        transform: scale(1.05);
    }

    /* Form styling */
    .custom-auth-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Form group styling */
    .form-group {
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }
    .form-group .input-icon {
        position: absolute;
        left: 16px;
        top: 32px; /* Align with input center */
        z-index: 1;
    }
    .form-group .input-icon i {
        color: #666;
        font-size: 16px;
        pointer-events: none; /* Prevent icon interaction */
    }
    .form-group .toggle-password {
        position: absolute;
        right: 16px;
        top: 32px;
        cursor: pointer;
        z-index: 1;
    }
    .form-group .toggle-password i {
        color: #666;
        font-size: 16px;
    }
    .form-group input {
        padding: 12px 16px;
        padding-left: 48px !important; /* Space for left icon */
        padding-right: 48px !important; /* Space for toggle icon */
        font-size: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #f8f9fa;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    .form-group input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    /* Checkbox group styling */
    .form-group.checkbox-group {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .form-group.checkbox-group label {
        font-weight: 400;
        margin-bottom: 0;
    }
    .form-group.checkbox-group input {
        width: auto;
        padding: 0;
        margin: 0;
        padding-left: 0 !important; /* Override for checkbox */
        padding-right: 0 !important; /* Override for checkbox */
    }

    /* Button styling */
    .custom-auth-button {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        padding: 14px;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        line-height: 1; /* Ensure consistent line height */
    }
    .custom-auth-button i {
        font-size: 16px;
        line-height: 1; /* Match button text line height */
        position: static; /* Prevent absolute positioning */
    }
    .custom-auth-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }
    .custom-auth-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
    }
    .custom-auth-button:disabled {
        background: #cccccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* Form links styling */
    .form-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }
    .form-links a {
        color: #007bff;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color 0.3s ease;
    }
    .form-links a:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    .form-links a i {
        font-size: 14px;
        position: static; /* Prevent absolute positioning */
    }

    /* Site link styling */
    .site-link {
        margin-top: 20px;
        text-align: center;
    }
    .site-link a {
        color: #6c757d;
        font-size: 12px;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .site-link a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    /* Message styling */
    .auth-message {
        margin-top: 16px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        text-align: center;
        animation: fadeIn 0.3s ease;
    }
    .auth-message.success {
        background: #e6f4ea;
        color: #2e7d32;
        border: 1px solid #a5d6a7;
    }
    .auth-message.error {
        background: #ffebee;
        color: #c62828;
        border: 1px solid #ef9a9a;
    }

    /* Animation keyframes */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive adjustments for mobile and tablet */
    @media (max-width: 768px) {
        .custom-auth-container {
            margin: 8px; /* Minimal margin */
            padding: 12px; /* Reduced padding */
            max-width: 100%; /* Full width */
        }
        .custom-auth-logo img {
            max-width: 150px;
        }
        .form-group input {
            font-size: 14px;
            padding: 10px 14px;
            padding-left: 40px !important; /* Adjusted for smaller left icon */
            padding-right: 40px !important; /* Adjusted for smaller toggle icon */
        }
        .form-group .input-icon {
            left: 12px;
            top: 30px; /* Adjusted for smaller input */
        }
        .form-group .input-icon i {
            font-size: 14px;
        }
        .form-group .toggle-password {
            right: 12px;
            top: 30px;
        }
        .form-group .toggle-password i {
            font-size: 14px;
        }
        .custom-auth-button {
            padding: 12px;
            font-size: 14px;
        }
        .custom-auth-button i {
            font-size: 14px;
        }
        .form-links a {
            font-size: 13px;
        }
        .site-link a {
            font-size: 11px;
        }
        .auth-message {
            font-size: 13px;
        }
    }
    